@zaber/motion 7.11.0 → 7.13.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 +33 -4
- package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
- package/dist/lib/ascii/axis.d.ts +4 -0
- package/dist/lib/ascii/axis.d.ts.map +1 -1
- package/dist/lib/ascii/axis.js +6 -0
- package/dist/lib/ascii/axis.js.map +1 -1
- package/dist/lib/ascii/axis_identity.d.ts +4 -0
- package/dist/lib/ascii/axis_identity.d.ts.map +1 -1
- package/dist/lib/ascii/axis_identity.js +3 -0
- package/dist/lib/ascii/axis_identity.js.map +1 -1
- package/dist/lib/ascii/axis_settings.js +2 -2
- package/dist/lib/ascii/axis_settings.js.map +1 -1
- package/dist/lib/ascii/pvt_buffer.d.ts +6 -0
- package/dist/lib/ascii/pvt_buffer.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_buffer.js +18 -0
- package/dist/lib/ascii/pvt_buffer.js.map +1 -1
- package/dist/lib/ascii/pvt_sequence.d.ts +35 -0
- package/dist/lib/ascii/pvt_sequence.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_sequence.js +63 -0
- package/dist/lib/ascii/pvt_sequence.js.map +1 -1
- package/dist/lib/ascii/simple_tuning.d.ts +1 -1
- package/dist/lib/ascii/simple_tuning.js.map +1 -1
- package/dist/lib/library.js +1 -1
- package/dist/lib/library.js.map +1 -1
- package/dist/lib/microscopy/microscope.d.ts +4 -0
- package/dist/lib/microscopy/microscope.d.ts.map +1 -1
- package/dist/lib/microscopy/microscope.js +33 -9
- package/dist/lib/microscopy/microscope.js.map +1 -1
- package/dist/lib/requests/index.d.ts +3 -0
- package/dist/lib/requests/index.d.ts.map +1 -1
- package/dist/lib/requests/index.js +3 -0
- package/dist/lib/requests/index.js.map +1 -1
- package/dist/lib/requests/pvt_buffer_get_sequence_data_request.d.ts +14 -0
- package/dist/lib/requests/pvt_buffer_get_sequence_data_request.d.ts.map +1 -0
- package/dist/lib/requests/pvt_buffer_get_sequence_data_request.js +34 -0
- package/dist/lib/requests/pvt_buffer_get_sequence_data_request.js.map +1 -0
- package/dist/lib/requests/pvt_generate_velocities_and_times_request.d.ts +17 -0
- package/dist/lib/requests/pvt_generate_velocities_and_times_request.d.ts.map +1 -0
- package/dist/lib/requests/pvt_generate_velocities_and_times_request.js +39 -0
- package/dist/lib/requests/pvt_generate_velocities_and_times_request.js.map +1 -0
- package/dist/lib/requests/pvt_submit_sequence_data_request.d.ts +16 -0
- package/dist/lib/requests/pvt_submit_sequence_data_request.d.ts.map +1 -0
- package/dist/lib/requests/pvt_submit_sequence_data_request.js +38 -0
- package/dist/lib/requests/pvt_submit_sequence_data_request.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axis_settings.js","sourceRoot":"","sources":["../../../src/ascii/axis_settings.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAMtD,oCAAiC;AACjC,oDAAsC;AACtC,sDAAwC;AAExC;;GAEG;AACH,MAAa,YAAY;IAGvB,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,OAAe,EACf,OAAc,aAAK,CAAC,MAAM;QAE1B,MAAM,OAAO,GAAuD;YAClE,GAAG,QAAQ,CAAC,uBAAuB,CAAC,OAAO;YAC3C,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YACrD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa;YACvC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU;YAC3B,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,IAAI;YACV,QAAQ;gBACN,OAAO,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,C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AK,CAAC,eAAe,CAC1B,GAAG,YAA8B;QAEjC,MAAM,OAAO,GAA4D;YACvE,GAAG,QAAQ,CAAC,4BAA4B,CAAC,OAAO;YAChD,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YACrD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa;YACvC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU;YAC3B,YAAY,EAAE,YAAY;YAC1B,QAAQ;gBACN,OAAO,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,0BAA0B,EAC1B,OAAO,EACP,QAAQ,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAC7C,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC1B,CAAC;CACF;AA9eD,oCA8eC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Axis } from './axis';\nimport { GetAxisSetting } from './get_axis_setting';\nimport { GetAxisSettingResult } from './get_axis_setting_result';\nimport { ConversionFactor } from './conversion_factor';\nimport { Units } from '../units';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\n\n/**\n * Class providing access to various axis settings and properties.\n */\nexport class AxisSettings {\n private _axis: Axis;\n\n constructor(axis: Axis) {\n this._axis = axis;\n }\n\n /**\n * Returns any axis setting or property.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Setting value.\n */\n public async get(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n */\n public async set(\n setting: string,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.DeviceSetSettingRequest & gateway.Message = {\n ...requests.DeviceSetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceSetSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting', request);\n }\n\n /**\n * Returns any axis setting or property as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getString(\n setting: string\n ): Promise<string> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_setting_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setString(\n setting: string,\n value: string\n ): Promise<void> {\n const request: requests.DeviceSetSettingStrRequest & gateway.Message = {\n ...requests.DeviceSetSettingStrRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingStrRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_str', request);\n }\n\n /**\n * Returns any axis setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getInt(\n setting: string\n ): Promise<bigint> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.Int64Response>(\n 'device/get_setting_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setInt(\n setting: string,\n value: bigint\n ): Promise<void> {\n const request: requests.DeviceSetSettingIntRequest & gateway.Message = {\n ...requests.DeviceSetSettingIntRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingIntRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_int', request);\n }\n\n /**\n * Returns any axis setting or property as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getBool(\n setting: string\n ): Promise<boolean> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_setting_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setBool(\n setting: string,\n value: boolean\n ): Promise<void> {\n const request: requests.DeviceSetSettingBoolRequest & gateway.Message = {\n ...requests.DeviceSetSettingBoolRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingBoolRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_bool', request);\n }\n\n /**\n * Convert arbitrary setting value to Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in units specified by following argument.\n * @param unit Units of the value.\n * @returns Setting value.\n */\n public convertToNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Convert arbitrary setting value from Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in Zaber native units.\n * @param unit Units to convert value to.\n * @returns Setting value.\n */\n public convertFromNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n fromNative: true,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting.\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Default setting value.\n */\n public getDefault(\n setting: string,\n unit: Units = Units.NATIVE\n ): number {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/get_setting_default',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a string.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultString(\n setting: string\n ): string {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/get_setting_default_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as an integer.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultInt(\n setting: string\n ): bigint {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.Int64Response>(\n 'device/get_setting_default_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a boolean.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultBool(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/get_setting_default_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Indicates if given setting can be converted from and to native units.\n * @param setting Name of the setting.\n * @returns True if unit conversion can be performed.\n */\n public canConvertNativeUnits(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/can_convert_setting',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Overrides default unit conversions.\n * Conversion factors are specified by setting names representing underlying dimensions.\n * Requires at least Firmware 7.30.\n * @param conversions Factors of all conversions to override.\n */\n public async setCustomUnitConversions(\n conversions: ConversionFactor[]\n ): Promise<void> {\n const request: requests.DeviceSetUnitConversionsRequest & gateway.Message = {\n ...requests.DeviceSetUnitConversionsRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n conversions: conversions,\n toBinary() {\n return requests.DeviceSetUnitConversionsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_unit_conversions', request);\n }\n\n /**\n * Gets many setting values in as few requests as possible.\n * @param axisSettings The settings to read.\n * @returns The setting values read.\n */\n public async getMany(\n ...axisSettings: GetAxisSetting[]\n ): Promise<GetAxisSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n axisSettings: axisSettings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAxisSettingResults>(\n 'device/get_many_settings',\n request,\n requests.GetAxisSettingResults.fromBinary);\n return response.results;\n }\n\n /**\n * Gets many setting values in the same tick, ensuring their values are synchronized.\n * Requires at least Firmware 7.35.\n * @param axisSettings The settings to read.\n * @returns The setting values read.\n */\n public async getSynchronized(\n ...axisSettings: GetAxisSetting[]\n ): Promise<GetAxisSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n axisSettings: axisSettings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAxisSettingResults>(\n 'device/get_sync_settings',\n request,\n requests.GetAxisSettingResults.fromBinary);\n return response.results;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"axis_settings.js","sourceRoot":"","sources":["../../../src/ascii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C,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC1B,CAAC;CACF;AA9eD,oCA8eC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Axis } from './axis';\nimport { GetAxisSetting } from './get_axis_setting';\nimport { GetAxisSettingResult } from './get_axis_setting_result';\nimport { ConversionFactor } from './conversion_factor';\nimport { Units } from '../units';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\n\n/**\n * Class providing access to various axis settings and properties.\n */\nexport class AxisSettings {\n private _axis: Axis;\n\n constructor(axis: Axis) {\n this._axis = axis;\n }\n\n /**\n * Returns any axis setting or property.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Setting value.\n */\n public async get(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n */\n public async set(\n setting: string,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.DeviceSetSettingRequest & gateway.Message = {\n ...requests.DeviceSetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceSetSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting', request);\n }\n\n /**\n * Returns any axis setting or property as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getString(\n setting: string\n ): Promise<string> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_setting_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setString(\n setting: string,\n value: string\n ): Promise<void> {\n const request: requests.DeviceSetSettingStrRequest & gateway.Message = {\n ...requests.DeviceSetSettingStrRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingStrRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_str', request);\n }\n\n /**\n * Returns any axis setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getInt(\n setting: string\n ): Promise<bigint> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.Int64Response>(\n 'device/get_setting_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setInt(\n setting: string,\n value: bigint\n ): Promise<void> {\n const request: requests.DeviceSetSettingIntRequest & gateway.Message = {\n ...requests.DeviceSetSettingIntRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingIntRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_int', request);\n }\n\n /**\n * Returns any axis setting or property as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getBool(\n setting: string\n ): Promise<boolean> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_setting_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setBool(\n setting: string,\n value: boolean\n ): Promise<void> {\n const request: requests.DeviceSetSettingBoolRequest & gateway.Message = {\n ...requests.DeviceSetSettingBoolRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingBoolRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_bool', request);\n }\n\n /**\n * Convert arbitrary setting value to Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in units specified by following argument.\n * @param unit Units of the value.\n * @returns Setting value.\n */\n public convertToNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Convert arbitrary setting value from Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in Zaber native units.\n * @param unit Units to convert value to.\n * @returns Setting value.\n */\n public convertFromNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n fromNative: true,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting.\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Default setting value.\n */\n public getDefault(\n setting: string,\n unit: Units = Units.NATIVE\n ): number {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/get_setting_default',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a string.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultString(\n setting: string\n ): string {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/get_setting_default_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as an integer.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultInt(\n setting: string\n ): bigint {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.Int64Response>(\n 'device/get_setting_default_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a boolean.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultBool(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/get_setting_default_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Indicates if given setting can be converted from and to native units.\n * @param setting Name of the setting.\n * @returns True if unit conversion can be performed.\n */\n public canConvertNativeUnits(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/can_convert_setting',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Overrides default unit conversions.\n * Conversion factors are specified by setting names representing underlying dimensions.\n * Requires at least Firmware 7.30.\n * @param conversions Factors of all conversions to override.\n */\n public async setCustomUnitConversions(\n conversions: ConversionFactor[]\n ): Promise<void> {\n const request: requests.DeviceSetUnitConversionsRequest & gateway.Message = {\n ...requests.DeviceSetUnitConversionsRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n conversions: conversions,\n toBinary() {\n return requests.DeviceSetUnitConversionsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_unit_conversions', request);\n }\n\n /**\n * Gets many setting values in as few requests as possible.\n * @param axisSettings The settings to read.\n * @returns The setting values read.\n */\n public async getMany(\n ...axisSettings: GetAxisSetting[]\n ): Promise<GetAxisSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n axisSettings: axisSettings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAxisSettingResults>(\n 'device/get_many_axis_settings',\n request,\n requests.GetAxisSettingResults.fromBinary);\n return response.results;\n }\n\n /**\n * Gets many setting values in the same tick, ensuring their values are synchronized.\n * Requires at least Firmware 7.35.\n * @param axisSettings The settings to read.\n * @returns The setting values read.\n */\n public async getSynchronized(\n ...axisSettings: GetAxisSetting[]\n ): Promise<GetAxisSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n axisSettings: axisSettings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAxisSettingResults>(\n 'device/get_sync_axis_settings',\n request,\n requests.GetAxisSettingResults.fromBinary);\n return response.results;\n }\n}\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Device } from './device';
|
|
2
|
+
import { PvtSequenceData } from './pvt_sequence_data';
|
|
2
3
|
/**
|
|
3
4
|
* Represents a PVT buffer with this number on a device.
|
|
4
5
|
* A PVT buffer is a place to store a queue of PVT actions.
|
|
@@ -20,6 +21,11 @@ export declare class PvtBuffer {
|
|
|
20
21
|
* @returns A string array containing all the PVT commands stored in the buffer.
|
|
21
22
|
*/
|
|
22
23
|
getContent(): Promise<string[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets the buffer contents as a PvtSequenceData object.
|
|
26
|
+
* @returns The PVT data loaded from the buffer.
|
|
27
|
+
*/
|
|
28
|
+
retrieveSequenceData(): Promise<PvtSequenceData>;
|
|
23
29
|
/**
|
|
24
30
|
* Erases the contents of the buffer.
|
|
25
31
|
* This method fails if there is a PVT sequence writing to the buffer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pvt_buffer.d.ts","sourceRoot":"","sources":["../../../src/ascii/pvt_buffer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"pvt_buffer.d.ts","sourceRoot":"","sources":["../../../src/ascii/pvt_buffer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAItD;;;GAGG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,IAAW,MAAM,IAAI,MAAM,CAE1B;IACD,OAAO,CAAC,OAAO,CAAS;IAExB;;OAEG;IACH,IAAW,QAAQ,IAAI,MAAM,CAE5B;IACD,OAAO,CAAC,SAAS,CAAS;gBAEd,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK5C;;;OAGG;IACU,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAmB5C;;;OAGG;IACU,oBAAoB,IAAI,OAAO,CAAC,eAAe,CAAC;IAkB7D;;;OAGG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAcpC"}
|
|
@@ -26,6 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
exports.PvtBuffer = void 0;
|
|
29
|
+
const pvt_sequence_data_1 = require("./pvt_sequence_data");
|
|
29
30
|
const gateway = __importStar(require("../gateway"));
|
|
30
31
|
const requests = __importStar(require("../requests"));
|
|
31
32
|
/**
|
|
@@ -67,6 +68,23 @@ class PvtBuffer {
|
|
|
67
68
|
const response = await gateway.callAsync('device/stream_buffer_get_content', request, requests.StreamBufferGetContentResponse.fromBinary);
|
|
68
69
|
return response.bufferLines;
|
|
69
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Gets the buffer contents as a PvtSequenceData object.
|
|
73
|
+
* @returns The PVT data loaded from the buffer.
|
|
74
|
+
*/
|
|
75
|
+
async retrieveSequenceData() {
|
|
76
|
+
const request = {
|
|
77
|
+
...requests.PvtBufferGetSequenceDataRequest.DEFAULT,
|
|
78
|
+
interfaceId: this.device.connection.interfaceId,
|
|
79
|
+
device: this.device.deviceAddress,
|
|
80
|
+
bufferId: this.bufferId,
|
|
81
|
+
toBinary() {
|
|
82
|
+
return requests.PvtBufferGetSequenceDataRequest.toBinary(this);
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
const response = await gateway.callAsync('device/pvt_buffer_get_data', request, pvt_sequence_data_1.PvtSequenceData.fromBinary);
|
|
86
|
+
return response;
|
|
87
|
+
}
|
|
70
88
|
/**
|
|
71
89
|
* Erases the contents of the buffer.
|
|
72
90
|
* This method fails if there is a PVT sequence writing to the buffer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pvt_buffer.js","sourceRoot":"","sources":["../../../src/ascii/pvt_buffer.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AACtC,sDAAwC;AAExC;;;GAGG;AACH,MAAa,SAAS;IACpB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAGD,YAAY,MAAc,EAAE,QAAgB;QAC1C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,UAAU;QACrB,MAAM,OAAO,GAA6D;YACxE,GAAG,QAAQ,CAAC,6BAA6B,CAAC,OAAO;YACjD,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CA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B,MAAM,OAAO,GAAwD;YACnE,GAAG,QAAQ,CAAC,wBAAwB,CAAC,OAAO;YAC5C,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,GAAG,EAAE,IAAI;YACT,QAAQ;gBACN,OAAO,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AArFD,8BAqFC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport { PvtSequenceData } from './pvt_sequence_data';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\n\n/**\n * Represents a PVT buffer with this number on a device.\n * A PVT buffer is a place to store a queue of PVT actions.\n */\nexport class PvtBuffer {\n /**\n * The Device this buffer exists on.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The number identifying the buffer on the device.\n */\n public get bufferId(): number {\n return this._bufferId;\n }\n private _bufferId: number;\n\n constructor(device: Device, bufferId: number) {\n this._device = device;\n this._bufferId = bufferId;\n }\n\n /**\n * Gets the buffer contents as an array of strings.\n * @returns A string array containing all the PVT commands stored in the buffer.\n */\n public async getContent(): Promise<string[]> {\n const request: requests.StreamBufferGetContentRequest & gateway.Message = {\n ...requests.StreamBufferGetContentRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n bufferId: this.bufferId,\n pvt: true,\n toBinary() {\n return requests.StreamBufferGetContentRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StreamBufferGetContentResponse>(\n 'device/stream_buffer_get_content',\n request,\n requests.StreamBufferGetContentResponse.fromBinary);\n return response.bufferLines;\n }\n\n /**\n * Gets the buffer contents as a PvtSequenceData object.\n * @returns The PVT data loaded from the buffer.\n */\n public async retrieveSequenceData(): Promise<PvtSequenceData> {\n const request: requests.PvtBufferGetSequenceDataRequest & gateway.Message = {\n ...requests.PvtBufferGetSequenceDataRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n bufferId: this.bufferId,\n toBinary() {\n return requests.PvtBufferGetSequenceDataRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtSequenceData>(\n 'device/pvt_buffer_get_data',\n request,\n PvtSequenceData.fromBinary);\n return response;\n }\n\n /**\n * Erases the contents of the buffer.\n * This method fails if there is a PVT sequence writing to the buffer.\n */\n public async erase(): Promise<void> {\n const request: requests.StreamBufferEraseRequest & gateway.Message = {\n ...requests.StreamBufferEraseRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n bufferId: this.bufferId,\n pvt: true,\n toBinary() {\n return requests.StreamBufferEraseRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_buffer_erase', request);\n }\n}\n"]}
|
|
@@ -119,6 +119,8 @@ export declare class PvtSequence {
|
|
|
119
119
|
* Also note that if generating a path for multiple axes, the user must provide a position measurement sequence
|
|
120
120
|
* per axis, And the values arrays for each sequence must be equal in length to each other and also to the
|
|
121
121
|
* times sequence.
|
|
122
|
+
*
|
|
123
|
+
* Does not support native units.
|
|
122
124
|
* @param positions Positions for the axes to move through, relative to their home positions.
|
|
123
125
|
* Each MeasurementSequence represents a sequence of positions along a particular dimension.
|
|
124
126
|
* For example, a 2D path sequence would contain two MeasurementSequence objects,
|
|
@@ -139,6 +141,8 @@ export declare class PvtSequence {
|
|
|
139
141
|
* Note that if generating a path for multiple axes, the user must provide a
|
|
140
142
|
* velocity measurement sequence per axis, and the values arrays for each sequence
|
|
141
143
|
* must be equal in length to each other and also to the times sequence.
|
|
144
|
+
*
|
|
145
|
+
* Does not support native units.
|
|
142
146
|
* @param velocities The sequence of velocities for each axis.
|
|
143
147
|
* Each MeasurementSequence represents a sequence of velocities along particular dimension.
|
|
144
148
|
* @param times The relative or absolute time of each position in the PVT sequence.
|
|
@@ -149,6 +153,32 @@ export declare class PvtSequence {
|
|
|
149
153
|
* @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.
|
|
150
154
|
*/
|
|
151
155
|
static generatePositions(velocities: MeasurementSequence[], times: MeasurementSequence, timesRelative?: boolean): Promise<PvtSequenceData>;
|
|
156
|
+
/**
|
|
157
|
+
* Generates sequences of velocities and times for a sequence of positions.
|
|
158
|
+
* This function fits a geometric spline (not-a-knot cubic for sequences of >3 points,
|
|
159
|
+
* natural cubic for 3, and a straight line for 2) over the position sequence
|
|
160
|
+
* and then calculates the velocity and time information by traversing it using a
|
|
161
|
+
* trapezoidal motion profile.
|
|
162
|
+
*
|
|
163
|
+
* This generation scheme attempts to keep speed and acceleration less than the
|
|
164
|
+
* specified target values, but does not guarantee it. Generally speaking, a higher
|
|
165
|
+
* resample number will bring the generated trajectory closer to respecting these
|
|
166
|
+
* limits.
|
|
167
|
+
*
|
|
168
|
+
* Note that consecutive duplicate points will be automatically removed as they
|
|
169
|
+
* have no geometric significance without additional time information. Also note that
|
|
170
|
+
* for multi-dimensional paths this function expects axes to be linear and orthogonal,
|
|
171
|
+
* however for paths of a single dimension rotary units are accepted.
|
|
172
|
+
*
|
|
173
|
+
* Does not support native units.
|
|
174
|
+
* @param positions Positions for the axes to move through, relative to their home positions.
|
|
175
|
+
* @param targetSpeed The target speed used to generate positions and times.
|
|
176
|
+
* @param targetAcceleration The target acceleration used to generate positions and times.
|
|
177
|
+
* @param resampleNumber The number of points to resample the sequence by.
|
|
178
|
+
* Leave undefined to use the specified points.
|
|
179
|
+
* @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.
|
|
180
|
+
*/
|
|
181
|
+
static generateVelocitiesAndTimes(positions: MeasurementSequence[], targetSpeed: Measurement, targetAcceleration: Measurement, resampleNumber?: number): Promise<PvtSequenceData>;
|
|
152
182
|
/**
|
|
153
183
|
* Waits until the live PVT sequence executes all queued actions.
|
|
154
184
|
* @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.
|
|
@@ -259,6 +289,11 @@ export declare class PvtSequence {
|
|
|
259
289
|
* @returns The PVT csv data loaded from the file.
|
|
260
290
|
*/
|
|
261
291
|
static loadSequenceData(path: string): Promise<PvtCsvData>;
|
|
292
|
+
/**
|
|
293
|
+
* Writes the contents of a PvtSequenceData object to the sequence.
|
|
294
|
+
* @param sequenceData The PVT sequence data to submit.
|
|
295
|
+
*/
|
|
296
|
+
submitSequenceData(sequenceData: PvtSequenceData): Promise<void>;
|
|
262
297
|
/**
|
|
263
298
|
* @deprecated Use PvtSequence.Io.SetDigitalOutput instead.
|
|
264
299
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pvt_sequence.d.ts","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;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AAE,MAAM,EAAE,GACd,OAAO,CAAC,IAAI,CAAC;IAgBhB;;;;;OAKG;IACU,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC;IAmB9C;;OAEG;IACI,2BAA2B,IAAI,IAAI;IAe1C;;OAEG;IACI,0BAA0B,IAAI,IAAI;IAezC;;;OAGG;IACH,OAAO,CAAC,aAAa;IAmBrB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAmBrB;;;;;;;;;;;;OAYG;WACiB,gBAAgB,CAClC,YAAY,EAAE,eAAe,EAC7B,IAAI,EAAE,MAAM,EACZ,cAAc,CAAC,EAAE,MAAM,EAAE,GACxB,OAAO,CAAC,IAAI,CAAC;IAchB;;;;;;;;;;;;;;;;;;;;;;OAsBG;WACiB,gBAAgB,CAClC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,UAAU,CAAC;IAgBtB;;;OAGG;IACU,kBAAkB,CAC7B,YAAY,EAAE,eAAe,GAC5B,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;;OAMG;IACU,gBAAgB,CAC3B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,IAAI,CAAC;IAiBhB;;;;;OAKG;IACU,oBAAoB,CAC/B,MAAM,EAAE,mBAAmB,EAAE,GAC5B,OAAO,CAAC,IAAI,CAAC;IAgBhB;;;;;;OAMG;IACU,eAAe,CAC1B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IAiBhB;;;;;OAKG;IACU,mBAAmB,CAC9B,MAAM,EAAE,MAAM,EAAE,GACf,OAAO,CAAC,IAAI,CAAC;CAejB;AAED,kBAAU,WAAW,CAAC;IACpB,UAAiB,oBAAoB;QACjC;;WAEG;QACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC/B;CACF"}
|
|
@@ -283,6 +283,8 @@ class PvtSequence {
|
|
|
283
283
|
* Also note that if generating a path for multiple axes, the user must provide a position measurement sequence
|
|
284
284
|
* per axis, And the values arrays for each sequence must be equal in length to each other and also to the
|
|
285
285
|
* times sequence.
|
|
286
|
+
*
|
|
287
|
+
* Does not support native units.
|
|
286
288
|
* @param positions Positions for the axes to move through, relative to their home positions.
|
|
287
289
|
* Each MeasurementSequence represents a sequence of positions along a particular dimension.
|
|
288
290
|
* For example, a 2D path sequence would contain two MeasurementSequence objects,
|
|
@@ -316,6 +318,8 @@ class PvtSequence {
|
|
|
316
318
|
* Note that if generating a path for multiple axes, the user must provide a
|
|
317
319
|
* velocity measurement sequence per axis, and the values arrays for each sequence
|
|
318
320
|
* must be equal in length to each other and also to the times sequence.
|
|
321
|
+
*
|
|
322
|
+
* Does not support native units.
|
|
319
323
|
* @param velocities The sequence of velocities for each axis.
|
|
320
324
|
* Each MeasurementSequence represents a sequence of velocities along particular dimension.
|
|
321
325
|
* @param times The relative or absolute time of each position in the PVT sequence.
|
|
@@ -338,6 +342,48 @@ class PvtSequence {
|
|
|
338
342
|
const response = await gateway.callAsync('device/pvt_generate_positions', request, pvt_sequence_data_1.PvtSequenceData.fromBinary);
|
|
339
343
|
return response;
|
|
340
344
|
}
|
|
345
|
+
/**
|
|
346
|
+
* Generates sequences of velocities and times for a sequence of positions.
|
|
347
|
+
* This function fits a geometric spline (not-a-knot cubic for sequences of >3 points,
|
|
348
|
+
* natural cubic for 3, and a straight line for 2) over the position sequence
|
|
349
|
+
* and then calculates the velocity and time information by traversing it using a
|
|
350
|
+
* trapezoidal motion profile.
|
|
351
|
+
*
|
|
352
|
+
* This generation scheme attempts to keep speed and acceleration less than the
|
|
353
|
+
* specified target values, but does not guarantee it. Generally speaking, a higher
|
|
354
|
+
* resample number will bring the generated trajectory closer to respecting these
|
|
355
|
+
* limits.
|
|
356
|
+
*
|
|
357
|
+
* Note that consecutive duplicate points will be automatically removed as they
|
|
358
|
+
* have no geometric significance without additional time information. Also note that
|
|
359
|
+
* for multi-dimensional paths this function expects axes to be linear and orthogonal,
|
|
360
|
+
* however for paths of a single dimension rotary units are accepted.
|
|
361
|
+
*
|
|
362
|
+
* Does not support native units.
|
|
363
|
+
* @param positions Positions for the axes to move through, relative to their home positions.
|
|
364
|
+
* @param targetSpeed The target speed used to generate positions and times.
|
|
365
|
+
* @param targetAcceleration The target acceleration used to generate positions and times.
|
|
366
|
+
* @param resampleNumber The number of points to resample the sequence by.
|
|
367
|
+
* Leave undefined to use the specified points.
|
|
368
|
+
* @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.
|
|
369
|
+
*/
|
|
370
|
+
static async generateVelocitiesAndTimes(positions, targetSpeed, targetAcceleration, resampleNumber) {
|
|
371
|
+
if (targetSpeed.value <= 0 || targetAcceleration.value <= 0) {
|
|
372
|
+
throw new TypeError('Target speed and acceleration values must be greater than zero.');
|
|
373
|
+
}
|
|
374
|
+
const request = {
|
|
375
|
+
...requests.PvtGenerateVelocitiesAndTimesRequest.DEFAULT,
|
|
376
|
+
positions: positions,
|
|
377
|
+
targetSpeed: targetSpeed,
|
|
378
|
+
targetAcceleration: targetAcceleration,
|
|
379
|
+
resampleNumber: resampleNumber,
|
|
380
|
+
toBinary() {
|
|
381
|
+
return requests.PvtGenerateVelocitiesAndTimesRequest.toBinary(this);
|
|
382
|
+
},
|
|
383
|
+
};
|
|
384
|
+
const response = await gateway.callAsync('device/pvt_generate_velocities_and_times', request, pvt_sequence_data_1.PvtSequenceData.fromBinary);
|
|
385
|
+
return response;
|
|
386
|
+
}
|
|
341
387
|
/**
|
|
342
388
|
* Waits until the live PVT sequence executes all queued actions.
|
|
343
389
|
* @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.
|
|
@@ -634,6 +680,23 @@ class PvtSequence {
|
|
|
634
680
|
const response = await gateway.callAsync('device/stream_pvt_load_csv', request, pvt_csv_data_1.PvtCsvData.fromBinary);
|
|
635
681
|
return response;
|
|
636
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* Writes the contents of a PvtSequenceData object to the sequence.
|
|
685
|
+
* @param sequenceData The PVT sequence data to submit.
|
|
686
|
+
*/
|
|
687
|
+
async submitSequenceData(sequenceData) {
|
|
688
|
+
const request = {
|
|
689
|
+
...requests.PvtSubmitSequenceDataRequest.DEFAULT,
|
|
690
|
+
interfaceId: this.device.connection.interfaceId,
|
|
691
|
+
device: this.device.deviceAddress,
|
|
692
|
+
streamId: this.pvtId,
|
|
693
|
+
sequenceData: sequenceData,
|
|
694
|
+
toBinary() {
|
|
695
|
+
return requests.PvtSubmitSequenceDataRequest.toBinary(this);
|
|
696
|
+
},
|
|
697
|
+
};
|
|
698
|
+
await gateway.callAsync('device/stream_pvt_submit_data', request);
|
|
699
|
+
}
|
|
637
700
|
/**
|
|
638
701
|
* @deprecated Use PvtSequence.Io.SetDigitalOutput instead.
|
|
639
702
|
*
|