@zaber/motion 8.2.0 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +15 -171
- package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
- package/dist/lib/ascii/axis_type.d.ts +5 -5
- package/dist/lib/ascii/axis_type.d.ts.map +1 -1
- package/dist/lib/ascii/axis_type.js +5 -5
- package/dist/lib/ascii/axis_type.js.map +1 -1
- package/dist/lib/ascii/digital_output_action.d.ts +4 -4
- package/dist/lib/ascii/digital_output_action.d.ts.map +1 -1
- package/dist/lib/ascii/digital_output_action.js +4 -4
- package/dist/lib/ascii/digital_output_action.js.map +1 -1
- package/dist/lib/ascii/io_port_type.d.ts +5 -5
- package/dist/lib/ascii/io_port_type.d.ts.map +1 -1
- package/dist/lib/ascii/io_port_type.js +5 -5
- package/dist/lib/ascii/io_port_type.js.map +1 -1
- package/dist/lib/ascii/message_type.d.ts +3 -3
- package/dist/lib/ascii/message_type.d.ts.map +1 -1
- package/dist/lib/ascii/message_type.js +3 -3
- package/dist/lib/ascii/message_type.js.map +1 -1
- package/dist/lib/ascii/oscilloscope_data_source.d.ts +2 -2
- package/dist/lib/ascii/oscilloscope_data_source.d.ts.map +1 -1
- package/dist/lib/ascii/oscilloscope_data_source.js +2 -2
- package/dist/lib/ascii/oscilloscope_data_source.js.map +1 -1
- package/dist/lib/ascii/pvt_axis_type.d.ts +2 -2
- package/dist/lib/ascii/pvt_axis_type.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_axis_type.js +2 -2
- package/dist/lib/ascii/pvt_axis_type.js.map +1 -1
- package/dist/lib/ascii/pvt_mode.d.ts +3 -3
- package/dist/lib/ascii/pvt_mode.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_mode.js +3 -3
- package/dist/lib/ascii/pvt_mode.js.map +1 -1
- package/dist/lib/ascii/servo_tuning_paramset.d.ts +12 -12
- package/dist/lib/ascii/servo_tuning_paramset.d.ts.map +1 -1
- package/dist/lib/ascii/servo_tuning_paramset.js +12 -12
- package/dist/lib/ascii/servo_tuning_paramset.js.map +1 -1
- package/dist/lib/ascii/stream_axis_type.d.ts +2 -2
- package/dist/lib/ascii/stream_axis_type.d.ts.map +1 -1
- package/dist/lib/ascii/stream_axis_type.js +2 -2
- package/dist/lib/ascii/stream_axis_type.js.map +1 -1
- package/dist/lib/ascii/stream_mode.d.ts +4 -4
- package/dist/lib/ascii/stream_mode.d.ts.map +1 -1
- package/dist/lib/ascii/stream_mode.js +4 -4
- package/dist/lib/ascii/stream_mode.js.map +1 -1
- package/dist/lib/ascii/trigger_action.d.ts +3 -3
- package/dist/lib/ascii/trigger_action.d.ts.map +1 -1
- package/dist/lib/ascii/trigger_action.js +3 -3
- package/dist/lib/ascii/trigger_action.js.map +1 -1
- package/dist/lib/ascii/trigger_operation.d.ts +3 -3
- package/dist/lib/ascii/trigger_operation.d.ts.map +1 -1
- package/dist/lib/ascii/trigger_operation.js +3 -3
- package/dist/lib/ascii/trigger_operation.js.map +1 -1
- package/dist/lib/binary/device_type.d.ts +3 -3
- package/dist/lib/binary/device_type.d.ts.map +1 -1
- package/dist/lib/binary/device_type.js +3 -3
- package/dist/lib/binary/device_type.js.map +1 -1
- package/dist/lib/device_db_source_type.d.ts +2 -2
- package/dist/lib/device_db_source_type.d.ts.map +1 -1
- package/dist/lib/device_db_source_type.js +2 -2
- package/dist/lib/device_db_source_type.js.map +1 -1
- package/dist/lib/device_port_type.d.ts +3 -3
- package/dist/lib/device_port_type.d.ts.map +1 -1
- package/dist/lib/device_port_type.js +3 -3
- package/dist/lib/device_port_type.js.map +1 -1
- package/dist/lib/library.js +1 -1
- package/dist/lib/library.js.map +1 -1
- package/dist/lib/log_output_mode.d.ts +4 -4
- package/dist/lib/log_output_mode.d.ts.map +1 -1
- package/dist/lib/log_output_mode.js +4 -4
- package/dist/lib/log_output_mode.js.map +1 -1
- package/dist/lib/product/process_controller_mode.d.ts +5 -5
- package/dist/lib/product/process_controller_mode.d.ts.map +1 -1
- package/dist/lib/product/process_controller_mode.js +5 -5
- package/dist/lib/product/process_controller_mode.js.map +1 -1
- package/dist/lib/product/process_controller_source_sensor.d.ts +3 -3
- package/dist/lib/product/process_controller_source_sensor.d.ts.map +1 -1
- package/dist/lib/product/process_controller_source_sensor.js +3 -3
- package/dist/lib/product/process_controller_source_sensor.js.map +1 -1
- package/dist/lib/rotation_direction.d.ts +4 -4
- package/dist/lib/rotation_direction.d.ts.map +1 -1
- package/dist/lib/rotation_direction.js +4 -4
- package/dist/lib/rotation_direction.js.map +1 -1
- package/package.json +1 -3
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
* Servo Tuning Parameter Set to target.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum ServoTuningParamset {
|
|
5
|
-
/**
|
|
5
|
+
/** The currently active servo tuning parameters. */
|
|
6
6
|
LIVE = 0,
|
|
7
|
-
/**
|
|
7
|
+
/** Stored parameter set 1. */
|
|
8
8
|
P_1 = 1,
|
|
9
|
-
/**
|
|
9
|
+
/** Stored parameter set 2. */
|
|
10
10
|
P_2 = 2,
|
|
11
|
-
/**
|
|
11
|
+
/** Stored parameter set 3. */
|
|
12
12
|
P_3 = 3,
|
|
13
|
-
/**
|
|
13
|
+
/** Stored parameter set 4. */
|
|
14
14
|
P_4 = 4,
|
|
15
|
-
/**
|
|
15
|
+
/** Stored parameter set 5. */
|
|
16
16
|
P_5 = 5,
|
|
17
|
-
/**
|
|
17
|
+
/** Stored parameter set 6. */
|
|
18
18
|
P_6 = 6,
|
|
19
|
-
/**
|
|
19
|
+
/** Stored parameter set 7. */
|
|
20
20
|
P_7 = 7,
|
|
21
|
-
/**
|
|
21
|
+
/** Stored parameter set 8. */
|
|
22
22
|
P_8 = 8,
|
|
23
|
-
/**
|
|
23
|
+
/** Stored parameter set 9. */
|
|
24
24
|
P_9 = 9,
|
|
25
|
-
/**
|
|
25
|
+
/** A temporary working area for preparing tuning changes. */
|
|
26
26
|
STAGING = 10,
|
|
27
|
-
/**
|
|
27
|
+
/** The factory default parameter set. */
|
|
28
28
|
DEFAULT = 11
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servo_tuning_paramset.d.ts","sourceRoot":"","sources":["../../../src/ascii/servo_tuning_paramset.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,
|
|
1
|
+
{"version":3,"file":"servo_tuning_paramset.d.ts","sourceRoot":"","sources":["../../../src/ascii/servo_tuning_paramset.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,oDAAoD;IACpD,IAAI,IAAI;IACR,8BAA8B;IAC9B,GAAG,IAAI;IACP,8BAA8B;IAC9B,GAAG,IAAI;IACP,8BAA8B;IAC9B,GAAG,IAAI;IACP,8BAA8B;IAC9B,GAAG,IAAI;IACP,8BAA8B;IAC9B,GAAG,IAAI;IACP,8BAA8B;IAC9B,GAAG,IAAI;IACP,8BAA8B;IAC9B,GAAG,IAAI;IACP,8BAA8B;IAC9B,GAAG,IAAI;IACP,8BAA8B;IAC9B,GAAG,IAAI;IACP,6DAA6D;IAC7D,OAAO,KAAK;IACZ,yCAAyC;IACzC,OAAO,KAAK;CACb;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,mBAAmB,CAE9E"}
|
|
@@ -7,29 +7,29 @@ exports.isServoTuningParamset = exports.ServoTuningParamset = void 0;
|
|
|
7
7
|
*/
|
|
8
8
|
var ServoTuningParamset;
|
|
9
9
|
(function (ServoTuningParamset) {
|
|
10
|
-
/**
|
|
10
|
+
/** The currently active servo tuning parameters. */
|
|
11
11
|
ServoTuningParamset[ServoTuningParamset["LIVE"] = 0] = "LIVE";
|
|
12
|
-
/**
|
|
12
|
+
/** Stored parameter set 1. */
|
|
13
13
|
ServoTuningParamset[ServoTuningParamset["P_1"] = 1] = "P_1";
|
|
14
|
-
/**
|
|
14
|
+
/** Stored parameter set 2. */
|
|
15
15
|
ServoTuningParamset[ServoTuningParamset["P_2"] = 2] = "P_2";
|
|
16
|
-
/**
|
|
16
|
+
/** Stored parameter set 3. */
|
|
17
17
|
ServoTuningParamset[ServoTuningParamset["P_3"] = 3] = "P_3";
|
|
18
|
-
/**
|
|
18
|
+
/** Stored parameter set 4. */
|
|
19
19
|
ServoTuningParamset[ServoTuningParamset["P_4"] = 4] = "P_4";
|
|
20
|
-
/**
|
|
20
|
+
/** Stored parameter set 5. */
|
|
21
21
|
ServoTuningParamset[ServoTuningParamset["P_5"] = 5] = "P_5";
|
|
22
|
-
/**
|
|
22
|
+
/** Stored parameter set 6. */
|
|
23
23
|
ServoTuningParamset[ServoTuningParamset["P_6"] = 6] = "P_6";
|
|
24
|
-
/**
|
|
24
|
+
/** Stored parameter set 7. */
|
|
25
25
|
ServoTuningParamset[ServoTuningParamset["P_7"] = 7] = "P_7";
|
|
26
|
-
/**
|
|
26
|
+
/** Stored parameter set 8. */
|
|
27
27
|
ServoTuningParamset[ServoTuningParamset["P_8"] = 8] = "P_8";
|
|
28
|
-
/**
|
|
28
|
+
/** Stored parameter set 9. */
|
|
29
29
|
ServoTuningParamset[ServoTuningParamset["P_9"] = 9] = "P_9";
|
|
30
|
-
/**
|
|
30
|
+
/** A temporary working area for preparing tuning changes. */
|
|
31
31
|
ServoTuningParamset[ServoTuningParamset["STAGING"] = 10] = "STAGING";
|
|
32
|
-
/**
|
|
32
|
+
/** The factory default parameter set. */
|
|
33
33
|
ServoTuningParamset[ServoTuningParamset["DEFAULT"] = 11] = "DEFAULT";
|
|
34
34
|
})(ServoTuningParamset || (exports.ServoTuningParamset = ServoTuningParamset = {}));
|
|
35
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servo_tuning_paramset.js","sourceRoot":"","sources":["../../../src/ascii/servo_tuning_paramset.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,mBAyBX;AAzBD,WAAY,mBAAmB;IAC7B,
|
|
1
|
+
{"version":3,"file":"servo_tuning_paramset.js","sourceRoot":"","sources":["../../../src/ascii/servo_tuning_paramset.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,mBAyBX;AAzBD,WAAY,mBAAmB;IAC7B,oDAAoD;IACpD,6DAAQ,CAAA;IACR,8BAA8B;IAC9B,2DAAO,CAAA;IACP,8BAA8B;IAC9B,2DAAO,CAAA;IACP,8BAA8B;IAC9B,2DAAO,CAAA;IACP,8BAA8B;IAC9B,2DAAO,CAAA;IACP,8BAA8B;IAC9B,2DAAO,CAAA;IACP,8BAA8B;IAC9B,2DAAO,CAAA;IACP,8BAA8B;IAC9B,2DAAO,CAAA;IACP,8BAA8B;IAC9B,2DAAO,CAAA;IACP,8BAA8B;IAC9B,2DAAO,CAAA;IACP,6DAA6D;IAC7D,oEAAY,CAAA;IACZ,yCAAyC;IACzC,oEAAY,CAAA;AACd,CAAC,EAzBW,mBAAmB,mCAAnB,mBAAmB,QAyB9B;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,KAAU;IAC9C,OAAO,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,QAAQ,CAAC,KAA4B,CAAC,CAAC;AACnF,CAAC;AAFD,sDAEC","sourcesContent":["/* This file is generated. Do not modify by hand. */\n/**\n * Servo Tuning Parameter Set to target.\n */\nexport enum ServoTuningParamset {\n /** The currently active servo tuning parameters. */\n LIVE = 0,\n /** Stored parameter set 1. */\n P_1 = 1,\n /** Stored parameter set 2. */\n P_2 = 2,\n /** Stored parameter set 3. */\n P_3 = 3,\n /** Stored parameter set 4. */\n P_4 = 4,\n /** Stored parameter set 5. */\n P_5 = 5,\n /** Stored parameter set 6. */\n P_6 = 6,\n /** Stored parameter set 7. */\n P_7 = 7,\n /** Stored parameter set 8. */\n P_8 = 8,\n /** Stored parameter set 9. */\n P_9 = 9,\n /** A temporary working area for preparing tuning changes. */\n STAGING = 10,\n /** The factory default parameter set. */\n DEFAULT = 11,\n}\n\n/**\n * Type guard for ServoTuningParamset.\n * This only checks if the value is one of the enum keys; it could create a false positive if two enums have the same key.\n */\nexport function isServoTuningParamset(value: any): value is ServoTuningParamset {\n return Object.values(ServoTuningParamset).includes(value as ServoTuningParamset);\n}\n"]}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Denotes type of the stream axis.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum StreamAxisType {
|
|
5
|
-
/**
|
|
5
|
+
/** A regular physical axis of the device. */
|
|
6
6
|
PHYSICAL = 0,
|
|
7
|
-
/**
|
|
7
|
+
/** A lockstep group combining multiple physical axes. */
|
|
8
8
|
LOCKSTEP = 1
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream_axis_type.d.ts","sourceRoot":"","sources":["../../../src/ascii/stream_axis_type.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,cAAc;IACxB,
|
|
1
|
+
{"version":3,"file":"stream_axis_type.d.ts","sourceRoot":"","sources":["../../../src/ascii/stream_axis_type.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,cAAc;IACxB,6CAA6C;IAC7C,QAAQ,IAAI;IACZ,yDAAyD;IACzD,QAAQ,IAAI;CACb;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,cAAc,CAEpE"}
|
|
@@ -7,9 +7,9 @@ exports.isStreamAxisType = exports.StreamAxisType = void 0;
|
|
|
7
7
|
*/
|
|
8
8
|
var StreamAxisType;
|
|
9
9
|
(function (StreamAxisType) {
|
|
10
|
-
/**
|
|
10
|
+
/** A regular physical axis of the device. */
|
|
11
11
|
StreamAxisType[StreamAxisType["PHYSICAL"] = 0] = "PHYSICAL";
|
|
12
|
-
/**
|
|
12
|
+
/** A lockstep group combining multiple physical axes. */
|
|
13
13
|
StreamAxisType[StreamAxisType["LOCKSTEP"] = 1] = "LOCKSTEP";
|
|
14
14
|
})(StreamAxisType || (exports.StreamAxisType = StreamAxisType = {}));
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream_axis_type.js","sourceRoot":"","sources":["../../../src/ascii/stream_axis_type.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,
|
|
1
|
+
{"version":3,"file":"stream_axis_type.js","sourceRoot":"","sources":["../../../src/ascii/stream_axis_type.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,6CAA6C;IAC7C,2DAAY,CAAA;IACZ,yDAAyD;IACzD,2DAAY,CAAA;AACd,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,KAAU;IACzC,OAAO,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAC;AACzE,CAAC;AAFD,4CAEC","sourcesContent":["/* This file is generated. Do not modify by hand. */\n/**\n * Denotes type of the stream axis.\n */\nexport enum StreamAxisType {\n /** A regular physical axis of the device. */\n PHYSICAL = 0,\n /** A lockstep group combining multiple physical axes. */\n LOCKSTEP = 1,\n}\n\n/**\n * Type guard for StreamAxisType.\n * This only checks if the value is one of the enum keys; it could create a false positive if two enums have the same key.\n */\nexport function isStreamAxisType(value: any): value is StreamAxisType {\n return Object.values(StreamAxisType).includes(value as StreamAxisType);\n}\n"]}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Mode of a stream.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum StreamMode {
|
|
5
|
-
/**
|
|
5
|
+
/** The stream is not set up. */
|
|
6
6
|
DISABLED = 0,
|
|
7
|
-
/**
|
|
7
|
+
/** Actions are queued into a stream buffer for later playback. */
|
|
8
8
|
STORE = 1,
|
|
9
|
-
/**
|
|
9
|
+
/** Actions are queued into a stream buffer for later playback (axes not specified). */
|
|
10
10
|
STORE_ARBITRARY_AXES = 2,
|
|
11
|
-
/**
|
|
11
|
+
/** Actions are queued and executed on the device immediately. */
|
|
12
12
|
LIVE = 3
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream_mode.d.ts","sourceRoot":"","sources":["../../../src/ascii/stream_mode.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,UAAU;IACpB,
|
|
1
|
+
{"version":3,"file":"stream_mode.d.ts","sourceRoot":"","sources":["../../../src/ascii/stream_mode.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,UAAU;IACpB,gCAAgC;IAChC,QAAQ,IAAI;IACZ,kEAAkE;IAClE,KAAK,IAAI;IACT,uFAAuF;IACvF,oBAAoB,IAAI;IACxB,iEAAiE;IACjE,IAAI,IAAI;CACT;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,UAAU,CAE5D"}
|
|
@@ -7,13 +7,13 @@ exports.isStreamMode = exports.StreamMode = void 0;
|
|
|
7
7
|
*/
|
|
8
8
|
var StreamMode;
|
|
9
9
|
(function (StreamMode) {
|
|
10
|
-
/**
|
|
10
|
+
/** The stream is not set up. */
|
|
11
11
|
StreamMode[StreamMode["DISABLED"] = 0] = "DISABLED";
|
|
12
|
-
/**
|
|
12
|
+
/** Actions are queued into a stream buffer for later playback. */
|
|
13
13
|
StreamMode[StreamMode["STORE"] = 1] = "STORE";
|
|
14
|
-
/**
|
|
14
|
+
/** Actions are queued into a stream buffer for later playback (axes not specified). */
|
|
15
15
|
StreamMode[StreamMode["STORE_ARBITRARY_AXES"] = 2] = "STORE_ARBITRARY_AXES";
|
|
16
|
-
/**
|
|
16
|
+
/** Actions are queued and executed on the device immediately. */
|
|
17
17
|
StreamMode[StreamMode["LIVE"] = 3] = "LIVE";
|
|
18
18
|
})(StreamMode || (exports.StreamMode = StreamMode = {}));
|
|
19
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream_mode.js","sourceRoot":"","sources":["../../../src/ascii/stream_mode.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,UASX;AATD,WAAY,UAAU;IACpB,
|
|
1
|
+
{"version":3,"file":"stream_mode.js","sourceRoot":"","sources":["../../../src/ascii/stream_mode.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,UASX;AATD,WAAY,UAAU;IACpB,gCAAgC;IAChC,mDAAY,CAAA;IACZ,kEAAkE;IAClE,6CAAS,CAAA;IACT,uFAAuF;IACvF,2EAAwB,CAAA;IACxB,iEAAiE;IACjE,2CAAQ,CAAA;AACV,CAAC,EATW,UAAU,0BAAV,UAAU,QASrB;AAED;;;GAGG;AACH,SAAgB,YAAY,CAAC,KAAU;IACrC,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,KAAmB,CAAC,CAAC;AACjE,CAAC;AAFD,oCAEC","sourcesContent":["/* This file is generated. Do not modify by hand. */\n/**\n * Mode of a stream.\n */\nexport enum StreamMode {\n /** The stream is not set up. */\n DISABLED = 0,\n /** Actions are queued into a stream buffer for later playback. */\n STORE = 1,\n /** Actions are queued into a stream buffer for later playback (axes not specified). */\n STORE_ARBITRARY_AXES = 2,\n /** Actions are queued and executed on the device immediately. */\n LIVE = 3,\n}\n\n/**\n * Type guard for StreamMode.\n * This only checks if the value is one of the enum keys; it could create a false positive if two enums have the same key.\n */\nexport function isStreamMode(value: any): value is StreamMode {\n return Object.values(StreamMode).includes(value as StreamMode);\n}\n"]}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Trigger action identifier.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum TriggerAction {
|
|
5
|
-
/**
|
|
5
|
+
/** Refers to all trigger actions. */
|
|
6
6
|
ALL = 0,
|
|
7
|
-
/** A */
|
|
7
|
+
/** Action A on a trigger. */
|
|
8
8
|
A = 1,
|
|
9
|
-
/** B */
|
|
9
|
+
/** Action B on a trigger. */
|
|
10
10
|
B = 2
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger_action.d.ts","sourceRoot":"","sources":["../../../src/ascii/trigger_action.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,aAAa;IACvB,
|
|
1
|
+
{"version":3,"file":"trigger_action.d.ts","sourceRoot":"","sources":["../../../src/ascii/trigger_action.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,aAAa;IACvB,qCAAqC;IACrC,GAAG,IAAI;IACP,6BAA6B;IAC7B,CAAC,IAAI;IACL,6BAA6B;IAC7B,CAAC,IAAI;CACN;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,CAElE"}
|
|
@@ -7,11 +7,11 @@ exports.isTriggerAction = exports.TriggerAction = void 0;
|
|
|
7
7
|
*/
|
|
8
8
|
var TriggerAction;
|
|
9
9
|
(function (TriggerAction) {
|
|
10
|
-
/**
|
|
10
|
+
/** Refers to all trigger actions. */
|
|
11
11
|
TriggerAction[TriggerAction["ALL"] = 0] = "ALL";
|
|
12
|
-
/** A */
|
|
12
|
+
/** Action A on a trigger. */
|
|
13
13
|
TriggerAction[TriggerAction["A"] = 1] = "A";
|
|
14
|
-
/** B */
|
|
14
|
+
/** Action B on a trigger. */
|
|
15
15
|
TriggerAction[TriggerAction["B"] = 2] = "B";
|
|
16
16
|
})(TriggerAction || (exports.TriggerAction = TriggerAction = {}));
|
|
17
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger_action.js","sourceRoot":"","sources":["../../../src/ascii/trigger_action.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,
|
|
1
|
+
{"version":3,"file":"trigger_action.js","sourceRoot":"","sources":["../../../src/ascii/trigger_action.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,qCAAqC;IACrC,+CAAO,CAAA;IACP,6BAA6B;IAC7B,2CAAK,CAAA;IACL,6BAA6B;IAC7B,2CAAK,CAAA;AACP,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AAED;;;GAGG;AACH,SAAgB,eAAe,CAAC,KAAU;IACxC,OAAO,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,KAAsB,CAAC,CAAC;AACvE,CAAC;AAFD,0CAEC","sourcesContent":["/* This file is generated. Do not modify by hand. */\n/**\n * Trigger action identifier.\n */\nexport enum TriggerAction {\n /** Refers to all trigger actions. */\n ALL = 0,\n /** Action A on a trigger. */\n A = 1,\n /** Action B on a trigger. */\n B = 2,\n}\n\n/**\n * Type guard for TriggerAction.\n * This only checks if the value is one of the enum keys; it could create a false positive if two enums have the same key.\n */\nexport function isTriggerAction(value: any): value is TriggerAction {\n return Object.values(TriggerAction).includes(value as TriggerAction);\n}\n"]}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Operation for trigger action.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum TriggerOperation {
|
|
5
|
-
/**
|
|
5
|
+
/** Assign the value to the setting (=). */
|
|
6
6
|
SET_TO = 0,
|
|
7
|
-
/**
|
|
7
|
+
/** Add the value to the current setting value (+=). */
|
|
8
8
|
INCREMENT_BY = 1,
|
|
9
|
-
/**
|
|
9
|
+
/** Subtract the value from the current setting value (-=). */
|
|
10
10
|
DECREMENT_BY = 2
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger_operation.d.ts","sourceRoot":"","sources":["../../../src/ascii/trigger_operation.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,
|
|
1
|
+
{"version":3,"file":"trigger_operation.d.ts","sourceRoot":"","sources":["../../../src/ascii/trigger_operation.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,2CAA2C;IAC3C,MAAM,IAAI;IACV,uDAAuD;IACvD,YAAY,IAAI;IAChB,8DAA8D;IAC9D,YAAY,IAAI;CACjB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,gBAAgB,CAExE"}
|
|
@@ -7,11 +7,11 @@ exports.isTriggerOperation = exports.TriggerOperation = void 0;
|
|
|
7
7
|
*/
|
|
8
8
|
var TriggerOperation;
|
|
9
9
|
(function (TriggerOperation) {
|
|
10
|
-
/**
|
|
10
|
+
/** Assign the value to the setting (=). */
|
|
11
11
|
TriggerOperation[TriggerOperation["SET_TO"] = 0] = "SET_TO";
|
|
12
|
-
/**
|
|
12
|
+
/** Add the value to the current setting value (+=). */
|
|
13
13
|
TriggerOperation[TriggerOperation["INCREMENT_BY"] = 1] = "INCREMENT_BY";
|
|
14
|
-
/**
|
|
14
|
+
/** Subtract the value from the current setting value (-=). */
|
|
15
15
|
TriggerOperation[TriggerOperation["DECREMENT_BY"] = 2] = "DECREMENT_BY";
|
|
16
16
|
})(TriggerOperation || (exports.TriggerOperation = TriggerOperation = {}));
|
|
17
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger_operation.js","sourceRoot":"","sources":["../../../src/ascii/trigger_operation.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,
|
|
1
|
+
{"version":3,"file":"trigger_operation.js","sourceRoot":"","sources":["../../../src/ascii/trigger_operation.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,2CAA2C;IAC3C,2DAAU,CAAA;IACV,uDAAuD;IACvD,uEAAgB,CAAA;IAChB,8DAA8D;IAC9D,uEAAgB,CAAA;AAClB,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,KAAU;IAC3C,OAAO,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,KAAyB,CAAC,CAAC;AAC7E,CAAC;AAFD,gDAEC","sourcesContent":["/* This file is generated. Do not modify by hand. */\n/**\n * Operation for trigger action.\n */\nexport enum TriggerOperation {\n /** Assign the value to the setting (=). */\n SET_TO = 0,\n /** Add the value to the current setting value (+=). */\n INCREMENT_BY = 1,\n /** Subtract the value from the current setting value (-=). */\n DECREMENT_BY = 2,\n}\n\n/**\n * Type guard for TriggerOperation.\n * This only checks if the value is one of the enum keys; it could create a false positive if two enums have the same key.\n */\nexport function isTriggerOperation(value: any): value is TriggerOperation {\n return Object.values(TriggerOperation).includes(value as TriggerOperation);\n}\n"]}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Denotes type of an device and units it accepts.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum DeviceType {
|
|
5
|
-
/**
|
|
5
|
+
/** Device type could not be determined. */
|
|
6
6
|
UNKNOWN = 0,
|
|
7
|
-
/**
|
|
7
|
+
/** A linear device that accepts length units for position. */
|
|
8
8
|
LINEAR = 1,
|
|
9
|
-
/**
|
|
9
|
+
/** A rotary device that accepts angle units for position. */
|
|
10
10
|
ROTARY = 2
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device_type.d.ts","sourceRoot":"","sources":["../../../src/binary/device_type.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,UAAU;IACpB,
|
|
1
|
+
{"version":3,"file":"device_type.d.ts","sourceRoot":"","sources":["../../../src/binary/device_type.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,UAAU;IACpB,2CAA2C;IAC3C,OAAO,IAAI;IACX,8DAA8D;IAC9D,MAAM,IAAI;IACV,6DAA6D;IAC7D,MAAM,IAAI;CACX;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,UAAU,CAE5D"}
|
|
@@ -7,11 +7,11 @@ exports.isDeviceType = exports.DeviceType = void 0;
|
|
|
7
7
|
*/
|
|
8
8
|
var DeviceType;
|
|
9
9
|
(function (DeviceType) {
|
|
10
|
-
/**
|
|
10
|
+
/** Device type could not be determined. */
|
|
11
11
|
DeviceType[DeviceType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
12
|
-
/**
|
|
12
|
+
/** A linear device that accepts length units for position. */
|
|
13
13
|
DeviceType[DeviceType["LINEAR"] = 1] = "LINEAR";
|
|
14
|
-
/**
|
|
14
|
+
/** A rotary device that accepts angle units for position. */
|
|
15
15
|
DeviceType[DeviceType["ROTARY"] = 2] = "ROTARY";
|
|
16
16
|
})(DeviceType || (exports.DeviceType = DeviceType = {}));
|
|
17
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device_type.js","sourceRoot":"","sources":["../../../src/binary/device_type.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,
|
|
1
|
+
{"version":3,"file":"device_type.js","sourceRoot":"","sources":["../../../src/binary/device_type.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,2CAA2C;IAC3C,iDAAW,CAAA;IACX,8DAA8D;IAC9D,+CAAU,CAAA;IACV,6DAA6D;IAC7D,+CAAU,CAAA;AACZ,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAED;;;GAGG;AACH,SAAgB,YAAY,CAAC,KAAU;IACrC,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,KAAmB,CAAC,CAAC;AACjE,CAAC;AAFD,oCAEC","sourcesContent":["/* This file is generated. Do not modify by hand. */\n/**\n * Denotes type of an device and units it accepts.\n */\nexport enum DeviceType {\n /** Device type could not be determined. */\n UNKNOWN = 0,\n /** A linear device that accepts length units for position. */\n LINEAR = 1,\n /** A rotary device that accepts angle units for position. */\n ROTARY = 2,\n}\n\n/**\n * Type guard for DeviceType.\n * This only checks if the value is one of the enum keys; it could create a false positive if two enums have the same key.\n */\nexport function isDeviceType(value: any): value is DeviceType {\n return Object.values(DeviceType).includes(value as DeviceType);\n}\n"]}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Type of source of Device DB data.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum DeviceDbSourceType {
|
|
5
|
-
/**
|
|
5
|
+
/** Fetch device information from a web service. */
|
|
6
6
|
WEB_SERVICE = 0,
|
|
7
|
-
/**
|
|
7
|
+
/** Load device information from a local database file. */
|
|
8
8
|
FILE = 1
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device_db_source_type.d.ts","sourceRoot":"","sources":["../../src/device_db_source_type.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,
|
|
1
|
+
{"version":3,"file":"device_db_source_type.d.ts","sourceRoot":"","sources":["../../src/device_db_source_type.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,mDAAmD;IACnD,WAAW,IAAI;IACf,0DAA0D;IAC1D,IAAI,IAAI;CACT;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,kBAAkB,CAE5E"}
|
|
@@ -7,9 +7,9 @@ exports.isDeviceDbSourceType = exports.DeviceDbSourceType = void 0;
|
|
|
7
7
|
*/
|
|
8
8
|
var DeviceDbSourceType;
|
|
9
9
|
(function (DeviceDbSourceType) {
|
|
10
|
-
/**
|
|
10
|
+
/** Fetch device information from a web service. */
|
|
11
11
|
DeviceDbSourceType[DeviceDbSourceType["WEB_SERVICE"] = 0] = "WEB_SERVICE";
|
|
12
|
-
/**
|
|
12
|
+
/** Load device information from a local database file. */
|
|
13
13
|
DeviceDbSourceType[DeviceDbSourceType["FILE"] = 1] = "FILE";
|
|
14
14
|
})(DeviceDbSourceType || (exports.DeviceDbSourceType = DeviceDbSourceType = {}));
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device_db_source_type.js","sourceRoot":"","sources":["../../src/device_db_source_type.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,
|
|
1
|
+
{"version":3,"file":"device_db_source_type.js","sourceRoot":"","sources":["../../src/device_db_source_type.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mDAAmD;IACnD,yEAAe,CAAA;IACf,0DAA0D;IAC1D,2DAAQ,CAAA;AACV,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,KAAU;IAC7C,OAAO,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC;AACjF,CAAC;AAFD,oDAEC","sourcesContent":["/* This file is generated. Do not modify by hand. */\n/**\n * Type of source of Device DB data.\n */\nexport enum DeviceDbSourceType {\n /** Fetch device information from a web service. */\n WEB_SERVICE = 0,\n /** Load device information from a local database file. */\n FILE = 1,\n}\n\n/**\n * Type guard for DeviceDbSourceType.\n * This only checks if the value is one of the enum keys; it could create a false positive if two enums have the same key.\n */\nexport function isDeviceDbSourceType(value: any): value is DeviceDbSourceType {\n return Object.values(DeviceDbSourceType).includes(value as DeviceDbSourceType);\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Type of TCP port used to connect to a device on the network.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum DevicePortType {
|
|
5
|
-
/**
|
|
5
|
+
/** TCP port that communicates only with the connected device. */
|
|
6
6
|
DEVICE = 0,
|
|
7
|
-
/**
|
|
7
|
+
/** TCP port that communicates with the connected device and all chained devices. */
|
|
8
8
|
DEVICE_CHAIN = 1
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device_port_type.d.ts","sourceRoot":"","sources":["../../src/device_port_type.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,cAAc;IACxB,
|
|
1
|
+
{"version":3,"file":"device_port_type.d.ts","sourceRoot":"","sources":["../../src/device_port_type.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,cAAc;IACxB,iEAAiE;IACjE,MAAM,IAAI;IACV,oFAAoF;IACpF,YAAY,IAAI;CACjB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,cAAc,CAEpE"}
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.isDevicePortType = exports.DevicePortType = void 0;
|
|
4
4
|
/* This file is generated. Do not modify by hand. */
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Type of TCP port used to connect to a device on the network.
|
|
7
7
|
*/
|
|
8
8
|
var DevicePortType;
|
|
9
9
|
(function (DevicePortType) {
|
|
10
|
-
/**
|
|
10
|
+
/** TCP port that communicates only with the connected device. */
|
|
11
11
|
DevicePortType[DevicePortType["DEVICE"] = 0] = "DEVICE";
|
|
12
|
-
/**
|
|
12
|
+
/** TCP port that communicates with the connected device and all chained devices. */
|
|
13
13
|
DevicePortType[DevicePortType["DEVICE_CHAIN"] = 1] = "DEVICE_CHAIN";
|
|
14
14
|
})(DevicePortType || (exports.DevicePortType = DevicePortType = {}));
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device_port_type.js","sourceRoot":"","sources":["../../src/device_port_type.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,
|
|
1
|
+
{"version":3,"file":"device_port_type.js","sourceRoot":"","sources":["../../src/device_port_type.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,iEAAiE;IACjE,uDAAU,CAAA;IACV,oFAAoF;IACpF,mEAAgB,CAAA;AAClB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,KAAU;IACzC,OAAO,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAC;AACzE,CAAC;AAFD,4CAEC","sourcesContent":["/* This file is generated. Do not modify by hand. */\n/**\n * Type of TCP port used to connect to a device on the network.\n */\nexport enum DevicePortType {\n /** TCP port that communicates only with the connected device. */\n DEVICE = 0,\n /** TCP port that communicates with the connected device and all chained devices. */\n DEVICE_CHAIN = 1,\n}\n\n/**\n * Type guard for DevicePortType.\n * This only checks if the value is one of the enum keys; it could create a false positive if two enums have the same key.\n */\nexport function isDevicePortType(value: any): value is DevicePortType {\n return Object.values(DevicePortType).includes(value as DevicePortType);\n}\n"]}
|
package/dist/lib/library.js
CHANGED
package/dist/lib/library.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":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ACtB,QAAQ;gBACN,OAAO,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AA/MD,0BA+MC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\nimport { DeviceDbSource } from './device_db_source';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Sets a sequence of sources. When the library needs device information,\n * it will try each source in the order they are provided.\n * @param sources The list of sources the library will access data from.\n */\n public static setDeviceDbSources(\n ...sources: DeviceDbSource[]\n ): void {\n const request: requests.SetDeviceDbLayeredSourcesRequest & gateway.Message = {\n ...requests.SetDeviceDbLayeredSourcesRequest.DEFAULT,\n sources: sources,\n toBinary() {\n return requests.SetDeviceDbLayeredSourcesRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_sources', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Checks if the Device DB store is currently enabled.\n * @returns True if the Device DB store is enabled.\n */\n public static isDeviceDbStoreEnabled(): boolean {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device_db/check_store',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Clears the Device DB store on the local filesystem.\n * Note: If the device DB was enabled with a custom store location, store files will be removed in that location.\n */\n public static async clearDeviceDbStore(): Promise<void> {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device_db/clear_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * @deprecated Calling this function is no longer necessary as the check happens automatically.\n *\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '8.2.0',\n toBinary() {\n return requests.CheckVersionRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/check_version', request);\n }\n\n /**\n * For internal use only: tells zaber motion core which host application it is bundled in.\n * @param hostApplication String name of the host application with which ZML is bundled.\n */\n public static setHostApplication(\n hostApplication: string\n ): void {\n const request: requests.StringResponse & gateway.Message = {\n ...requests.StringResponse.DEFAULT,\n value: hostApplication,\n toBinary() {\n return requests.StringResponse.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_host_application', request);\n }\n}\n\ngateway.addInitCallback(Library.checkVersion);\n"]}
|
|
1
|
+
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AACrC,qDAAuC;AAKv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QAEF,OAAO,CAAC,QAAQ,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AA/MD,0BA+MC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\nimport { DeviceDbSource } from './device_db_source';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Sets a sequence of sources. When the library needs device information,\n * it will try each source in the order they are provided.\n * @param sources The list of sources the library will access data from.\n */\n public static setDeviceDbSources(\n ...sources: DeviceDbSource[]\n ): void {\n const request: requests.SetDeviceDbLayeredSourcesRequest & gateway.Message = {\n ...requests.SetDeviceDbLayeredSourcesRequest.DEFAULT,\n sources: sources,\n toBinary() {\n return requests.SetDeviceDbLayeredSourcesRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_sources', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Checks if the Device DB store is currently enabled.\n * @returns True if the Device DB store is enabled.\n */\n public static isDeviceDbStoreEnabled(): boolean {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device_db/check_store',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Clears the Device DB store on the local filesystem.\n * Note: If the device DB was enabled with a custom store location, store files will be removed in that location.\n */\n public static async clearDeviceDbStore(): Promise<void> {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device_db/clear_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * @deprecated Calling this function is no longer necessary as the check happens automatically.\n *\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '8.4.0',\n toBinary() {\n return requests.CheckVersionRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/check_version', request);\n }\n\n /**\n * For internal use only: tells zaber motion core which host application it is bundled in.\n * @param hostApplication String name of the host application with which ZML is bundled.\n */\n public static setHostApplication(\n hostApplication: string\n ): void {\n const request: requests.StringResponse & gateway.Message = {\n ...requests.StringResponse.DEFAULT,\n value: hostApplication,\n toBinary() {\n return requests.StringResponse.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_host_application', request);\n }\n}\n\ngateway.addInitCallback(Library.checkVersion);\n"]}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Mode of logging output of the library.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum LogOutputMode {
|
|
5
|
-
/**
|
|
5
|
+
/** Discard all log output. */
|
|
6
6
|
OFF = 0,
|
|
7
|
-
/**
|
|
7
|
+
/** Write logs to standard output. */
|
|
8
8
|
STDOUT = 1,
|
|
9
|
-
/**
|
|
9
|
+
/** Write logs to standard error. */
|
|
10
10
|
STDERR = 2,
|
|
11
|
-
/**
|
|
11
|
+
/** Write logs to a specified file. */
|
|
12
12
|
FILE = 3
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log_output_mode.d.ts","sourceRoot":"","sources":["../../src/log_output_mode.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,aAAa;IACvB,
|
|
1
|
+
{"version":3,"file":"log_output_mode.d.ts","sourceRoot":"","sources":["../../src/log_output_mode.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,aAAa;IACvB,8BAA8B;IAC9B,GAAG,IAAI;IACP,qCAAqC;IACrC,MAAM,IAAI;IACV,oCAAoC;IACpC,MAAM,IAAI;IACV,sCAAsC;IACtC,IAAI,IAAI;CACT;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,CAElE"}
|
|
@@ -7,13 +7,13 @@ exports.isLogOutputMode = exports.LogOutputMode = void 0;
|
|
|
7
7
|
*/
|
|
8
8
|
var LogOutputMode;
|
|
9
9
|
(function (LogOutputMode) {
|
|
10
|
-
/**
|
|
10
|
+
/** Discard all log output. */
|
|
11
11
|
LogOutputMode[LogOutputMode["OFF"] = 0] = "OFF";
|
|
12
|
-
/**
|
|
12
|
+
/** Write logs to standard output. */
|
|
13
13
|
LogOutputMode[LogOutputMode["STDOUT"] = 1] = "STDOUT";
|
|
14
|
-
/**
|
|
14
|
+
/** Write logs to standard error. */
|
|
15
15
|
LogOutputMode[LogOutputMode["STDERR"] = 2] = "STDERR";
|
|
16
|
-
/**
|
|
16
|
+
/** Write logs to a specified file. */
|
|
17
17
|
LogOutputMode[LogOutputMode["FILE"] = 3] = "FILE";
|
|
18
18
|
})(LogOutputMode || (exports.LogOutputMode = LogOutputMode = {}));
|
|
19
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log_output_mode.js","sourceRoot":"","sources":["../../src/log_output_mode.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,aASX;AATD,WAAY,aAAa;IACvB,
|
|
1
|
+
{"version":3,"file":"log_output_mode.js","sourceRoot":"","sources":["../../src/log_output_mode.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD;;GAEG;AACH,IAAY,aASX;AATD,WAAY,aAAa;IACvB,8BAA8B;IAC9B,+CAAO,CAAA;IACP,qCAAqC;IACrC,qDAAU,CAAA;IACV,oCAAoC;IACpC,qDAAU,CAAA;IACV,sCAAsC;IACtC,iDAAQ,CAAA;AACV,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;AAED;;;GAGG;AACH,SAAgB,eAAe,CAAC,KAAU;IACxC,OAAO,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,KAAsB,CAAC,CAAC;AACvE,CAAC;AAFD,0CAEC","sourcesContent":["/* This file is generated. Do not modify by hand. */\n/**\n * Mode of logging output of the library.\n */\nexport enum LogOutputMode {\n /** Discard all log output. */\n OFF = 0,\n /** Write logs to standard output. */\n STDOUT = 1,\n /** Write logs to standard error. */\n STDERR = 2,\n /** Write logs to a specified file. */\n FILE = 3,\n}\n\n/**\n * Type guard for LogOutputMode.\n * This only checks if the value is one of the enum keys; it could create a false positive if two enums have the same key.\n */\nexport function isLogOutputMode(value: any): value is LogOutputMode {\n return Object.values(LogOutputMode).includes(value as LogOutputMode);\n}\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Mode of the process controller.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum ProcessControllerMode {
|
|
5
|
-
/**
|
|
5
|
+
/** Allows direct control of the output voltage. */
|
|
6
6
|
MANUAL = 0,
|
|
7
|
-
/**
|
|
7
|
+
/** Closed-loop PID control to maintain a setpoint. */
|
|
8
8
|
PID = 1,
|
|
9
|
-
/**
|
|
9
|
+
/** PID control optimized for heater loads. */
|
|
10
10
|
PID_HEATER = 2,
|
|
11
|
-
/**
|
|
11
|
+
/** Binary on/off switching based on a threshold. */
|
|
12
12
|
ON_OFF = 3
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process_controller_mode.d.ts","sourceRoot":"","sources":["../../../src/product/process_controller_mode.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,
|
|
1
|
+
{"version":3,"file":"process_controller_mode.d.ts","sourceRoot":"","sources":["../../../src/product/process_controller_mode.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,mDAAmD;IACnD,MAAM,IAAI;IACV,sDAAsD;IACtD,GAAG,IAAI;IACP,8CAA8C;IAC9C,UAAU,IAAI;IACd,oDAAoD;IACpD,MAAM,IAAI;CACX;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,qBAAqB,CAElF"}
|
|
@@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.isProcessControllerMode = exports.ProcessControllerMode = void 0;
|
|
4
4
|
/* This file is generated. Do not modify by hand. */
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Mode of the process controller.
|
|
7
7
|
*/
|
|
8
8
|
var ProcessControllerMode;
|
|
9
9
|
(function (ProcessControllerMode) {
|
|
10
|
-
/**
|
|
10
|
+
/** Allows direct control of the output voltage. */
|
|
11
11
|
ProcessControllerMode[ProcessControllerMode["MANUAL"] = 0] = "MANUAL";
|
|
12
|
-
/**
|
|
12
|
+
/** Closed-loop PID control to maintain a setpoint. */
|
|
13
13
|
ProcessControllerMode[ProcessControllerMode["PID"] = 1] = "PID";
|
|
14
|
-
/**
|
|
14
|
+
/** PID control optimized for heater loads. */
|
|
15
15
|
ProcessControllerMode[ProcessControllerMode["PID_HEATER"] = 2] = "PID_HEATER";
|
|
16
|
-
/**
|
|
16
|
+
/** Binary on/off switching based on a threshold. */
|
|
17
17
|
ProcessControllerMode[ProcessControllerMode["ON_OFF"] = 3] = "ON_OFF";
|
|
18
18
|
})(ProcessControllerMode || (exports.ProcessControllerMode = ProcessControllerMode = {}));
|
|
19
19
|
/**
|