@zaber/motion 6.2.1 → 6.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.
Files changed (68) hide show
  1. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  2. package/dist/lib/ascii/device_io.d.ts +72 -72
  3. package/dist/lib/ascii/device_io.d.ts.map +1 -1
  4. package/dist/lib/ascii/device_io.js +176 -176
  5. package/dist/lib/ascii/device_io.js.map +1 -1
  6. package/dist/lib/ascii/index.d.ts +2 -0
  7. package/dist/lib/ascii/index.d.ts.map +1 -1
  8. package/dist/lib/ascii/index.js +2 -0
  9. package/dist/lib/ascii/index.js.map +1 -1
  10. package/dist/lib/ascii/pvt_io.d.ts +100 -0
  11. package/dist/lib/ascii/pvt_io.d.ts.map +1 -0
  12. package/dist/lib/ascii/pvt_io.js +318 -0
  13. package/dist/lib/ascii/pvt_io.js.map +1 -0
  14. package/dist/lib/ascii/pvt_sequence.d.ts +36 -24
  15. package/dist/lib/ascii/pvt_sequence.d.ts.map +1 -1
  16. package/dist/lib/ascii/pvt_sequence.js +92 -78
  17. package/dist/lib/ascii/pvt_sequence.js.map +1 -1
  18. package/dist/lib/ascii/stream.d.ts +55 -39
  19. package/dist/lib/ascii/stream.d.ts.map +1 -1
  20. package/dist/lib/ascii/stream.js +134 -116
  21. package/dist/lib/ascii/stream.js.map +1 -1
  22. package/dist/lib/ascii/stream_io.d.ts +115 -0
  23. package/dist/lib/ascii/stream_io.d.ts.map +1 -0
  24. package/dist/lib/ascii/stream_io.js +348 -0
  25. package/dist/lib/ascii/stream_io.js.map +1 -0
  26. package/dist/lib/ascii/trigger.d.ts +11 -0
  27. package/dist/lib/ascii/trigger.d.ts.map +1 -1
  28. package/dist/lib/ascii/trigger.js +35 -0
  29. package/dist/lib/ascii/trigger.js.map +1 -1
  30. package/dist/lib/ascii/triggers.d.ts +5 -0
  31. package/dist/lib/ascii/triggers.d.ts.map +1 -1
  32. package/dist/lib/ascii/triggers.js +16 -0
  33. package/dist/lib/ascii/triggers.js.map +1 -1
  34. package/dist/lib/library.js +1 -1
  35. package/dist/lib/library.js.map +1 -1
  36. package/dist/lib/requests/index.d.ts +7 -0
  37. package/dist/lib/requests/index.d.ts.map +1 -1
  38. package/dist/lib/requests/index.js +7 -0
  39. package/dist/lib/requests/index.js.map +1 -1
  40. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.d.ts +15 -0
  41. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.d.ts.map +1 -0
  42. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.js +36 -0
  43. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.js.map +1 -0
  44. package/dist/lib/requests/stream_cancel_output_schedule_request.d.ts +15 -0
  45. package/dist/lib/requests/stream_cancel_output_schedule_request.d.ts.map +1 -0
  46. package/dist/lib/requests/stream_cancel_output_schedule_request.js +35 -0
  47. package/dist/lib/requests/stream_cancel_output_schedule_request.js.map +1 -0
  48. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.d.ts +18 -0
  49. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.d.ts.map +1 -0
  50. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.js +41 -0
  51. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.js.map +1 -0
  52. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.d.ts +19 -0
  53. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.d.ts.map +1 -0
  54. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.js +42 -0
  55. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.js.map +1 -0
  56. package/dist/lib/requests/stream_set_analog_output_schedule_request.d.ts +19 -0
  57. package/dist/lib/requests/stream_set_analog_output_schedule_request.d.ts.map +1 -0
  58. package/dist/lib/requests/stream_set_analog_output_schedule_request.js +42 -0
  59. package/dist/lib/requests/stream_set_analog_output_schedule_request.js.map +1 -0
  60. package/dist/lib/requests/stream_set_digital_output_schedule_request.d.ts +20 -0
  61. package/dist/lib/requests/stream_set_digital_output_schedule_request.d.ts.map +1 -0
  62. package/dist/lib/requests/stream_set_digital_output_schedule_request.js +43 -0
  63. package/dist/lib/requests/stream_set_digital_output_schedule_request.js.map +1 -0
  64. package/dist/lib/requests/trigger_set_label_request.d.ts +13 -0
  65. package/dist/lib/requests/trigger_set_label_request.d.ts.map +1 -0
  66. package/dist/lib/requests/trigger_set_label_request.js +31 -0
  67. package/dist/lib/requests/trigger_set_label_request.js.map +1 -0
  68. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"device_io.js","sourceRoot":"","sources":["../../../src/ascii/device_io.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AACtC,sDAAwC;AACxC,oCAA+C;AAC/C,qDAAgD;AAKhD;;GAEG;AACH,MAAa,QAAQ;IAGnB,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,mBAAmB;QAC9B,MAAM,OAAO,GAA4D;YACvE,GAAG,QAAQ,CAAC,4BAA4B,CAAC,OAAO;YAChD,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW;YAChD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa;YAClC,WAAW,EAAE,IAAI;YACjB,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,2BAA2B,EAC3B,OAAO,EACP,QAAQ,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QACrD,OAAO,QAAQ,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,oBAAo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1B,OAAO,EACP,QAAQ,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAClD,OAAO,QAAQ,CAAC,MAAM,CAAC;IACzB,CAAC;CACF;AAnmBD,4BAmmBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Native, Units, Time } from '../units';\nimport { DeviceIOInfo } from './device_io_info';\nimport { DigitalOutputAction } from './digital_output_action';\nimport { IoPortType } from './io_port_type';\nimport { IoPortLabel } from './io_port_label';\n\n/**\n * Class providing access to the I/O channels of the device.\n */\nexport class DeviceIO {\n private _device: Device;\n\n constructor(device: Device) {\n this._device = device;\n }\n\n /**\n * Returns the current values of all digital input channels.\n * @returns True if voltage is present on the input channel and false otherwise.\n */\n public async getAllDigitalInputs(): Promise<boolean[]> {\n const request: requests.DeviceGetAllDigitalIORequest & gateway.Message = {\n ...requests.DeviceGetAllDigitalIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'di',\n toBinary() {\n return requests.DeviceGetAllDigitalIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DeviceGetAllDigitalIOResponse>(\n 'device/get_all_digital_io',\n request,\n requests.DeviceGetAllDigitalIOResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Returns the current values of all digital output channels.\n * @returns True if the output channel is conducting and false otherwise.\n */\n public async getAllDigitalOutputs(): Promise<boolean[]> {\n const request: requests.DeviceGetAllDigitalIORequest & gateway.Message = {\n ...requests.DeviceGetAllDigitalIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'do',\n toBinary() {\n return requests.DeviceGetAllDigitalIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DeviceGetAllDigitalIOResponse>(\n 'device/get_all_digital_io',\n request,\n requests.DeviceGetAllDigitalIOResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Returns the current values of all analog input channels.\n * @returns Measurements of the voltage present on the input channels.\n */\n public async getAllAnalogInputs(): Promise<number[]> {\n const request: requests.DeviceGetAllAnalogIORequest & gateway.Message = {\n ...requests.DeviceGetAllAnalogIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'ai',\n toBinary() {\n return requests.DeviceGetAllAnalogIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DeviceGetAllAnalogIOResponse>(\n 'device/get_all_analog_io',\n request,\n requests.DeviceGetAllAnalogIOResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Returns the current values of all analog output channels.\n * @returns Measurements of voltage that the output channels are conducting.\n */\n public async getAllAnalogOutputs(): Promise<number[]> {\n const request: requests.DeviceGetAllAnalogIORequest & gateway.Message = {\n ...requests.DeviceGetAllAnalogIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'ao',\n toBinary() {\n return requests.DeviceGetAllAnalogIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DeviceGetAllAnalogIOResponse>(\n 'device/get_all_analog_io',\n request,\n requests.DeviceGetAllAnalogIOResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Returns the current value of the specified digital input channel.\n * @param channelNumber Channel number starting at 1.\n * @returns True if voltage is present on the input channel and false otherwise.\n */\n public async getDigitalInput(\n channelNumber: number\n ): Promise<boolean> {\n const request: requests.DeviceGetDigitalIORequest & gateway.Message = {\n ...requests.DeviceGetDigitalIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'di',\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceGetDigitalIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_digital_io',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the current value of the specified digital output channel.\n * @param channelNumber Channel number starting at 1.\n * @returns True if the output channel is conducting and false otherwise.\n */\n public async getDigitalOutput(\n channelNumber: number\n ): Promise<boolean> {\n const request: requests.DeviceGetDigitalIORequest & gateway.Message = {\n ...requests.DeviceGetDigitalIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'do',\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceGetDigitalIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_digital_io',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the current value of the specified analog input channel.\n * @param channelNumber Channel number starting at 1.\n * @returns A measurementsof the voltage present on the input channel.\n */\n public async getAnalogInput(\n channelNumber: number\n ): Promise<number> {\n const request: requests.DeviceGetAnalogIORequest & gateway.Message = {\n ...requests.DeviceGetAnalogIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'ai',\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceGetAnalogIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_analog_io',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the current values of the specified analog output channel.\n * @param channelNumber Channel number starting at 1.\n * @returns A measurement of voltage that the output channel is conducting.\n */\n public async getAnalogOutput(\n channelNumber: number\n ): Promise<number> {\n const request: requests.DeviceGetAnalogIORequest & gateway.Message = {\n ...requests.DeviceGetAnalogIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'ao',\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceGetAnalogIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_analog_io',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets values for all digital output channels.\n * @param values The type of action to perform on the channel.\n */\n public async setAllDigitalOutputs(\n values: DigitalOutputAction[]\n ): Promise<void> {\n const request: requests.DeviceSetAllDigitalOutputsRequest & gateway.Message = {\n ...requests.DeviceSetAllDigitalOutputsRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n values: values,\n toBinary() {\n return requests.DeviceSetAllDigitalOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_all_digital_outputs', request);\n }\n\n /**\n * Sets current and future value for all digital output channels.\n * Requires at least Firmware 7.37.\n * @param values The type of actions to perform immediately on output channels.\n * @param futureValues The type of actions to perform in the future on output channels.\n * @param delay Delay between setting current values and setting future values.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async setAllDigitalOutputsSchedule(\n values: DigitalOutputAction[],\n futureValues: DigitalOutputAction[],\n delay: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (delay <= 0) {\n throw new TypeError('Delay must be a positive value.');\n }\n const request: requests.DeviceSetAllDigitalOutputsScheduleRequest & gateway.Message = {\n ...requests.DeviceSetAllDigitalOutputsScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n values: values,\n futureValues: futureValues,\n delay: delay,\n unit: unit,\n toBinary() {\n return requests.DeviceSetAllDigitalOutputsScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_all_digital_outputs_schedule', request);\n }\n\n /**\n * Cancel all scheduled digital output actions.\n * Requires at least Firmware 7.37.\n * @param [channels=[]] Optionally specify which channels to cancel.\n * Array length must be empty or equal to the number of channels on device.\n * Specifying \"True\" for a channel will cancel the scheduled digital output action for that channel.\n */\n public async cancelAllDigitalOutputsSchedule(\n channels: boolean[] = []\n ): Promise<void> {\n const request: requests.DeviceCancelAllOutputsScheduleRequest & gateway.Message = {\n ...requests.DeviceCancelAllOutputsScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n analog: false,\n channels: channels,\n toBinary() {\n return requests.DeviceCancelAllOutputsScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/cancel_all_outputs_schedule', request);\n }\n\n /**\n * Cancel all scheduled analog output actions.\n * Requires at least Firmware 7.38.\n * @param [channels=[]] Optionally specify which channels to cancel.\n * Array length must be empty or equal to the number of channels on device.\n * Specifying \"True\" for a channel will cancel the scheduled analog output value for that channel.\n */\n public async cancelAllAnalogOutputsSchedule(\n channels: boolean[] = []\n ): Promise<void> {\n const request: requests.DeviceCancelAllOutputsScheduleRequest & gateway.Message = {\n ...requests.DeviceCancelAllOutputsScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n analog: true,\n channels: channels,\n toBinary() {\n return requests.DeviceCancelAllOutputsScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/cancel_all_outputs_schedule', request);\n }\n\n /**\n * Sets values for all analog output channels.\n * @param values Voltage values to set the output channels to.\n */\n public async setAllAnalogOutputs(\n values: number[]\n ): Promise<void> {\n const request: requests.DeviceSetAllAnalogOutputsRequest & gateway.Message = {\n ...requests.DeviceSetAllAnalogOutputsRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n values: values,\n toBinary() {\n return requests.DeviceSetAllAnalogOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_all_analog_outputs', request);\n }\n\n /**\n * Sets current and future values for all analog output channels.\n * Requires at least Firmware 7.38.\n * @param values Voltage values to set the output channels to immediately.\n * @param futureValues Voltage values to set the output channels to in the future.\n * @param delay Delay between setting current values and setting future values.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async setAllAnalogOutputsSchedule(\n values: number[],\n futureValues: number[],\n delay: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (delay <= 0) {\n throw new TypeError('Delay must be a positive value.');\n }\n const request: requests.DeviceSetAllAnalogOutputsScheduleRequest & gateway.Message = {\n ...requests.DeviceSetAllAnalogOutputsScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n values: values,\n futureValues: futureValues,\n delay: delay,\n unit: unit,\n toBinary() {\n return requests.DeviceSetAllAnalogOutputsScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_all_analog_outputs_schedule', request);\n }\n\n /**\n * Sets value for the specified digital output channel.\n * @param channelNumber Channel number starting at 1.\n * @param value The type of action to perform on the channel.\n */\n public async setDigitalOutput(\n channelNumber: number,\n value: DigitalOutputAction\n ): Promise<void> {\n const request: requests.DeviceSetDigitalOutputRequest & gateway.Message = {\n ...requests.DeviceSetDigitalOutputRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.DeviceSetDigitalOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_digital_output', request);\n }\n\n /**\n * Sets current and future value for the specified digital output channel.\n * Requires at least Firmware 7.37.\n * @param channelNumber Channel number starting at 1.\n * @param value The type of action to perform immediately on the channel.\n * @param futureValue The type of action to perform in the future on the channel.\n * @param delay Delay between setting current value and setting future value.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async setDigitalOutputSchedule(\n channelNumber: number,\n value: DigitalOutputAction,\n futureValue: DigitalOutputAction,\n delay: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (delay <= 0) {\n throw new TypeError('Delay must be a positive value.');\n }\n const request: requests.DeviceSetDigitalOutputScheduleRequest & gateway.Message = {\n ...requests.DeviceSetDigitalOutputScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelNumber: channelNumber,\n value: value,\n futureValue: futureValue,\n delay: delay,\n unit: unit,\n toBinary() {\n return requests.DeviceSetDigitalOutputScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_digital_output_schedule', request);\n }\n\n /**\n * Cancels a scheduled digital output action.\n * Requires at least Firmware 7.37.\n * @param channelNumber Channel number starting at 1.\n */\n public async cancelDigitalOutputSchedule(\n channelNumber: number\n ): Promise<void> {\n const request: requests.DeviceCancelOutputScheduleRequest & gateway.Message = {\n ...requests.DeviceCancelOutputScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n analog: false,\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceCancelOutputScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/cancel_output_schedule', request);\n }\n\n /**\n * Cancels a scheduled analog output value.\n * Requires at least Firmware 7.38.\n * @param channelNumber Channel number starting at 1.\n */\n public async cancelAnalogOutputSchedule(\n channelNumber: number\n ): Promise<void> {\n const request: requests.DeviceCancelOutputScheduleRequest & gateway.Message = {\n ...requests.DeviceCancelOutputScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n analog: true,\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceCancelOutputScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/cancel_output_schedule', request);\n }\n\n /**\n * Sets value for the specified analog output channel.\n * @param channelNumber Channel number starting at 1.\n * @param value Value to set the output channel voltage to.\n */\n public async setAnalogOutput(\n channelNumber: number,\n value: number\n ): Promise<void> {\n const request: requests.DeviceSetAnalogOutputRequest & gateway.Message = {\n ...requests.DeviceSetAnalogOutputRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.DeviceSetAnalogOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_analog_output', request);\n }\n\n /**\n * Sets current and future value for the specified analog output channel.\n * Requires at least Firmware 7.38.\n * @param channelNumber Channel number starting at 1.\n * @param value Value to set the output channel voltage to immediately.\n * @param futureValue Value to set the output channel voltage to in the future.\n * @param delay Delay between setting current value and setting future value.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async setAnalogOutputSchedule(\n channelNumber: number,\n value: number,\n futureValue: number,\n delay: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (delay <= 0) {\n throw new TypeError('Delay must be a positive value.');\n }\n const request: requests.DeviceSetAnalogOutputScheduleRequest & gateway.Message = {\n ...requests.DeviceSetAnalogOutputScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelNumber: channelNumber,\n value: value,\n futureValue: futureValue,\n delay: delay,\n unit: unit,\n toBinary() {\n return requests.DeviceSetAnalogOutputScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_analog_output_schedule', request);\n }\n\n /**\n * Returns the number of I/O channels the device has.\n * @returns An object containing the number of I/O channels the device has.\n */\n public async getChannelsInfo(): Promise<DeviceIOInfo> {\n const request: requests.DeviceEmptyRequest & gateway.Message = {\n ...requests.DeviceEmptyRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n toBinary() {\n return requests.DeviceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<DeviceIOInfo>(\n 'device/get_io_info',\n request,\n DeviceIOInfo.fromBinary);\n return response;\n }\n\n /**\n * Sets the label of the specified channel.\n * @param portType The type of channel to set the label of.\n * @param channelNumber Channel number starting at 1.\n * @param label The label to set for the specified channel.\n * If no value or an empty string is provided, this label is deleted.\n */\n public async setLabel(\n portType: IoPortType,\n channelNumber: number,\n label?: string\n ): Promise<void> {\n const request: requests.SetIoPortLabelRequest & gateway.Message = {\n ...requests.SetIoPortLabelRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n portType: portType,\n channelNumber: channelNumber,\n label: label,\n toBinary() {\n return requests.SetIoPortLabelRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_io_label', request);\n }\n\n /**\n * Returns the label of the specified channel.\n * @param portType The type of channel to get the label of.\n * @param channelNumber Channel number starting at 1.\n * @returns The label of the specified channel.\n */\n public async getLabel(\n portType: IoPortType,\n channelNumber: number\n ): Promise<string> {\n const request: requests.GetIoPortLabelRequest & gateway.Message = {\n ...requests.GetIoPortLabelRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n portType: portType,\n channelNumber: channelNumber,\n toBinary() {\n return requests.GetIoPortLabelRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_io_label',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns every label assigned to an IO port on this device.\n * @returns The labels set for this device's IO.\n */\n public async getAllLabels(): Promise<IoPortLabel[]> {\n const request: requests.DeviceEmptyRequest & gateway.Message = {\n ...requests.DeviceEmptyRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n toBinary() {\n return requests.DeviceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAllIoPortLabelsResponse>(\n 'device/get_all_io_labels',\n request,\n requests.GetAllIoPortLabelsResponse.fromBinary);\n return response.labels;\n }\n}\n"]}
1
+ {"version":3,"file":"device_io.js","sourceRoot":"","sources":["../../../src/ascii/device_io.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AACtC,sDAAwC;AACxC,oCAA+C;AAC/C,qDAAgD;AAKhD;;GAEG;AACH,MAAa,QAAQ;IAGnB,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,eAAe;QAC1B,MAAM,OAAO,GAAkD;YAC7D,GAAG,QAAQ,CAAC,kBAAkB,CAAC,OAAO;YACtC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,UAA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+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,8BAA8B,CACzC,WAAsB,EAAE;QAExB,MAAM,OAAO,GAAqE;YAChF,GAAG,QAAQ,CAAC,qCAAqC,CAAC,OAAO;YACzD,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW;YAChD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa;YAClC,MAAM,EAAE,IAAI;YACZ,QAAQ,EAAE,QAAQ;YAClB,QAAQ;gBACN,OAAO,QAAQ,CAAC,qCAAqC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACvE,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAnmBD,4BAmmBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Native, Units, Time } from '../units';\nimport { DeviceIOInfo } from './device_io_info';\nimport { DigitalOutputAction } from './digital_output_action';\nimport { IoPortType } from './io_port_type';\nimport { IoPortLabel } from './io_port_label';\n\n/**\n * Class providing access to the I/O channels of the device.\n */\nexport class DeviceIO {\n private _device: Device;\n\n constructor(device: Device) {\n this._device = device;\n }\n\n /**\n * Returns the number of I/O channels the device has.\n * @returns An object containing the number of I/O channels the device has.\n */\n public async getChannelsInfo(): Promise<DeviceIOInfo> {\n const request: requests.DeviceEmptyRequest & gateway.Message = {\n ...requests.DeviceEmptyRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n toBinary() {\n return requests.DeviceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<DeviceIOInfo>(\n 'device/get_io_info',\n request,\n DeviceIOInfo.fromBinary);\n return response;\n }\n\n /**\n * Sets the label of the specified channel.\n * @param portType The type of channel to set the label of.\n * @param channelNumber Channel number starting at 1.\n * @param label The label to set for the specified channel.\n * If no value or an empty string is provided, this label is deleted.\n */\n public async setLabel(\n portType: IoPortType,\n channelNumber: number,\n label?: string\n ): Promise<void> {\n const request: requests.SetIoPortLabelRequest & gateway.Message = {\n ...requests.SetIoPortLabelRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n portType: portType,\n channelNumber: channelNumber,\n label: label,\n toBinary() {\n return requests.SetIoPortLabelRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_io_label', request);\n }\n\n /**\n * Returns the label of the specified channel.\n * @param portType The type of channel to get the label of.\n * @param channelNumber Channel number starting at 1.\n * @returns The label of the specified channel.\n */\n public async getLabel(\n portType: IoPortType,\n channelNumber: number\n ): Promise<string> {\n const request: requests.GetIoPortLabelRequest & gateway.Message = {\n ...requests.GetIoPortLabelRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n portType: portType,\n channelNumber: channelNumber,\n toBinary() {\n return requests.GetIoPortLabelRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_io_label',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns every label assigned to an IO port on this device.\n * @returns The labels set for this device's IO.\n */\n public async getAllLabels(): Promise<IoPortLabel[]> {\n const request: requests.DeviceEmptyRequest & gateway.Message = {\n ...requests.DeviceEmptyRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n toBinary() {\n return requests.DeviceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAllIoPortLabelsResponse>(\n 'device/get_all_io_labels',\n request,\n requests.GetAllIoPortLabelsResponse.fromBinary);\n return response.labels;\n }\n\n /**\n * Returns the current value of the specified digital input channel.\n * @param channelNumber Channel number starting at 1.\n * @returns True if voltage is present on the input channel and false otherwise.\n */\n public async getDigitalInput(\n channelNumber: number\n ): Promise<boolean> {\n const request: requests.DeviceGetDigitalIORequest & gateway.Message = {\n ...requests.DeviceGetDigitalIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'di',\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceGetDigitalIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_digital_io',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the current value of the specified digital output channel.\n * @param channelNumber Channel number starting at 1.\n * @returns True if the output channel is conducting and false otherwise.\n */\n public async getDigitalOutput(\n channelNumber: number\n ): Promise<boolean> {\n const request: requests.DeviceGetDigitalIORequest & gateway.Message = {\n ...requests.DeviceGetDigitalIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'do',\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceGetDigitalIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_digital_io',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the current value of the specified analog input channel.\n * @param channelNumber Channel number starting at 1.\n * @returns A measurementsof the voltage present on the input channel.\n */\n public async getAnalogInput(\n channelNumber: number\n ): Promise<number> {\n const request: requests.DeviceGetAnalogIORequest & gateway.Message = {\n ...requests.DeviceGetAnalogIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'ai',\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceGetAnalogIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_analog_io',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the current values of the specified analog output channel.\n * @param channelNumber Channel number starting at 1.\n * @returns A measurement of voltage that the output channel is conducting.\n */\n public async getAnalogOutput(\n channelNumber: number\n ): Promise<number> {\n const request: requests.DeviceGetAnalogIORequest & gateway.Message = {\n ...requests.DeviceGetAnalogIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'ao',\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceGetAnalogIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_analog_io',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the current values of all digital input channels.\n * @returns True if voltage is present on the input channel and false otherwise.\n */\n public async getAllDigitalInputs(): Promise<boolean[]> {\n const request: requests.DeviceGetAllDigitalIORequest & gateway.Message = {\n ...requests.DeviceGetAllDigitalIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'di',\n toBinary() {\n return requests.DeviceGetAllDigitalIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DeviceGetAllDigitalIOResponse>(\n 'device/get_all_digital_io',\n request,\n requests.DeviceGetAllDigitalIOResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Returns the current values of all digital output channels.\n * @returns True if the output channel is conducting and false otherwise.\n */\n public async getAllDigitalOutputs(): Promise<boolean[]> {\n const request: requests.DeviceGetAllDigitalIORequest & gateway.Message = {\n ...requests.DeviceGetAllDigitalIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'do',\n toBinary() {\n return requests.DeviceGetAllDigitalIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DeviceGetAllDigitalIOResponse>(\n 'device/get_all_digital_io',\n request,\n requests.DeviceGetAllDigitalIOResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Returns the current values of all analog input channels.\n * @returns Measurements of the voltage present on the input channels.\n */\n public async getAllAnalogInputs(): Promise<number[]> {\n const request: requests.DeviceGetAllAnalogIORequest & gateway.Message = {\n ...requests.DeviceGetAllAnalogIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'ai',\n toBinary() {\n return requests.DeviceGetAllAnalogIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DeviceGetAllAnalogIOResponse>(\n 'device/get_all_analog_io',\n request,\n requests.DeviceGetAllAnalogIOResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Returns the current values of all analog output channels.\n * @returns Measurements of voltage that the output channels are conducting.\n */\n public async getAllAnalogOutputs(): Promise<number[]> {\n const request: requests.DeviceGetAllAnalogIORequest & gateway.Message = {\n ...requests.DeviceGetAllAnalogIORequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelType: 'ao',\n toBinary() {\n return requests.DeviceGetAllAnalogIORequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DeviceGetAllAnalogIOResponse>(\n 'device/get_all_analog_io',\n request,\n requests.DeviceGetAllAnalogIOResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Sets value for the specified digital output channel.\n * @param channelNumber Channel number starting at 1.\n * @param value The type of action to perform on the channel.\n */\n public async setDigitalOutput(\n channelNumber: number,\n value: DigitalOutputAction\n ): Promise<void> {\n const request: requests.DeviceSetDigitalOutputRequest & gateway.Message = {\n ...requests.DeviceSetDigitalOutputRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.DeviceSetDigitalOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_digital_output', request);\n }\n\n /**\n * Sets values for all digital output channels.\n * @param values The type of action to perform on the channel.\n */\n public async setAllDigitalOutputs(\n values: DigitalOutputAction[]\n ): Promise<void> {\n const request: requests.DeviceSetAllDigitalOutputsRequest & gateway.Message = {\n ...requests.DeviceSetAllDigitalOutputsRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n values: values,\n toBinary() {\n return requests.DeviceSetAllDigitalOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_all_digital_outputs', request);\n }\n\n /**\n * Sets current and future value for the specified digital output channel.\n * Requires at least Firmware 7.37.\n * @param channelNumber Channel number starting at 1.\n * @param value The type of action to perform immediately on the channel.\n * @param futureValue The type of action to perform in the future on the channel.\n * @param delay Delay between setting current value and setting future value.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async setDigitalOutputSchedule(\n channelNumber: number,\n value: DigitalOutputAction,\n futureValue: DigitalOutputAction,\n delay: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (delay <= 0) {\n throw new TypeError('Delay must be a positive value.');\n }\n const request: requests.DeviceSetDigitalOutputScheduleRequest & gateway.Message = {\n ...requests.DeviceSetDigitalOutputScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelNumber: channelNumber,\n value: value,\n futureValue: futureValue,\n delay: delay,\n unit: unit,\n toBinary() {\n return requests.DeviceSetDigitalOutputScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_digital_output_schedule', request);\n }\n\n /**\n * Sets current and future values for all digital output channels.\n * Requires at least Firmware 7.37.\n * @param values The type of actions to perform immediately on output channels.\n * @param futureValues The type of actions to perform in the future on output channels.\n * @param delay Delay between setting current values and setting future values.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async setAllDigitalOutputsSchedule(\n values: DigitalOutputAction[],\n futureValues: DigitalOutputAction[],\n delay: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (delay <= 0) {\n throw new TypeError('Delay must be a positive value.');\n }\n const request: requests.DeviceSetAllDigitalOutputsScheduleRequest & gateway.Message = {\n ...requests.DeviceSetAllDigitalOutputsScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n values: values,\n futureValues: futureValues,\n delay: delay,\n unit: unit,\n toBinary() {\n return requests.DeviceSetAllDigitalOutputsScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_all_digital_outputs_schedule', request);\n }\n\n /**\n * Sets value for the specified analog output channel.\n * @param channelNumber Channel number starting at 1.\n * @param value Value to set the output channel voltage to.\n */\n public async setAnalogOutput(\n channelNumber: number,\n value: number\n ): Promise<void> {\n const request: requests.DeviceSetAnalogOutputRequest & gateway.Message = {\n ...requests.DeviceSetAnalogOutputRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.DeviceSetAnalogOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_analog_output', request);\n }\n\n /**\n * Sets values for all analog output channels.\n * @param values Voltage values to set the output channels to.\n */\n public async setAllAnalogOutputs(\n values: number[]\n ): Promise<void> {\n const request: requests.DeviceSetAllAnalogOutputsRequest & gateway.Message = {\n ...requests.DeviceSetAllAnalogOutputsRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n values: values,\n toBinary() {\n return requests.DeviceSetAllAnalogOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_all_analog_outputs', request);\n }\n\n /**\n * Sets current and future value for the specified analog output channel.\n * Requires at least Firmware 7.38.\n * @param channelNumber Channel number starting at 1.\n * @param value Value to set the output channel voltage to immediately.\n * @param futureValue Value to set the output channel voltage to in the future.\n * @param delay Delay between setting current value and setting future value.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async setAnalogOutputSchedule(\n channelNumber: number,\n value: number,\n futureValue: number,\n delay: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (delay <= 0) {\n throw new TypeError('Delay must be a positive value.');\n }\n const request: requests.DeviceSetAnalogOutputScheduleRequest & gateway.Message = {\n ...requests.DeviceSetAnalogOutputScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n channelNumber: channelNumber,\n value: value,\n futureValue: futureValue,\n delay: delay,\n unit: unit,\n toBinary() {\n return requests.DeviceSetAnalogOutputScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_analog_output_schedule', request);\n }\n\n /**\n * Sets current and future values for all analog output channels.\n * Requires at least Firmware 7.38.\n * @param values Voltage values to set the output channels to immediately.\n * @param futureValues Voltage values to set the output channels to in the future.\n * @param delay Delay between setting current values and setting future values.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async setAllAnalogOutputsSchedule(\n values: number[],\n futureValues: number[],\n delay: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (delay <= 0) {\n throw new TypeError('Delay must be a positive value.');\n }\n const request: requests.DeviceSetAllAnalogOutputsScheduleRequest & gateway.Message = {\n ...requests.DeviceSetAllAnalogOutputsScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n values: values,\n futureValues: futureValues,\n delay: delay,\n unit: unit,\n toBinary() {\n return requests.DeviceSetAllAnalogOutputsScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_all_analog_outputs_schedule', request);\n }\n\n /**\n * Cancels a scheduled digital output action.\n * Requires at least Firmware 7.37.\n * @param channelNumber Channel number starting at 1.\n */\n public async cancelDigitalOutputSchedule(\n channelNumber: number\n ): Promise<void> {\n const request: requests.DeviceCancelOutputScheduleRequest & gateway.Message = {\n ...requests.DeviceCancelOutputScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n analog: false,\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceCancelOutputScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/cancel_output_schedule', request);\n }\n\n /**\n * Cancel all scheduled digital output actions.\n * Requires at least Firmware 7.37.\n * @param [channels=[]] Optionally specify which channels to cancel.\n * Array length must be empty or equal to the number of channels on device.\n * Specifying \"True\" for a channel will cancel the scheduled digital output action for that channel.\n */\n public async cancelAllDigitalOutputsSchedule(\n channels: boolean[] = []\n ): Promise<void> {\n const request: requests.DeviceCancelAllOutputsScheduleRequest & gateway.Message = {\n ...requests.DeviceCancelAllOutputsScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n analog: false,\n channels: channels,\n toBinary() {\n return requests.DeviceCancelAllOutputsScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/cancel_all_outputs_schedule', request);\n }\n\n /**\n * Cancels a scheduled analog output value.\n * Requires at least Firmware 7.38.\n * @param channelNumber Channel number starting at 1.\n */\n public async cancelAnalogOutputSchedule(\n channelNumber: number\n ): Promise<void> {\n const request: requests.DeviceCancelOutputScheduleRequest & gateway.Message = {\n ...requests.DeviceCancelOutputScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n analog: true,\n channelNumber: channelNumber,\n toBinary() {\n return requests.DeviceCancelOutputScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/cancel_output_schedule', request);\n }\n\n /**\n * Cancel all scheduled analog output actions.\n * Requires at least Firmware 7.38.\n * @param [channels=[]] Optionally specify which channels to cancel.\n * Array length must be empty or equal to the number of channels on device.\n * Specifying \"True\" for a channel will cancel the scheduled analog output value for that channel.\n */\n public async cancelAllAnalogOutputsSchedule(\n channels: boolean[] = []\n ): Promise<void> {\n const request: requests.DeviceCancelAllOutputsScheduleRequest & gateway.Message = {\n ...requests.DeviceCancelAllOutputsScheduleRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n analog: true,\n channels: channels,\n toBinary() {\n return requests.DeviceCancelAllOutputsScheduleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/cancel_all_outputs_schedule', request);\n }\n}\n"]}
@@ -34,6 +34,7 @@ export * from './pvt';
34
34
  export * from './pvt_axis_definition';
35
35
  export * from './pvt_axis_type';
36
36
  export * from './pvt_buffer';
37
+ export * from './pvt_io';
37
38
  export * from './pvt_mode';
38
39
  export * from './pvt_sequence';
39
40
  export * from './response';
@@ -48,6 +49,7 @@ export * from './stream';
48
49
  export * from './stream_axis_definition';
49
50
  export * from './stream_axis_type';
50
51
  export * from './stream_buffer';
52
+ export * from './stream_io';
51
53
  export * from './stream_mode';
52
54
  export * from './streams';
53
55
  export * from './transport';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,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,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
@@ -51,6 +51,7 @@ __exportStar(require("./pvt"), exports);
51
51
  __exportStar(require("./pvt_axis_definition"), exports);
52
52
  __exportStar(require("./pvt_axis_type"), exports);
53
53
  __exportStar(require("./pvt_buffer"), exports);
54
+ __exportStar(require("./pvt_io"), exports);
54
55
  __exportStar(require("./pvt_mode"), exports);
55
56
  __exportStar(require("./pvt_sequence"), exports);
56
57
  __exportStar(require("./response"), exports);
@@ -65,6 +66,7 @@ __exportStar(require("./stream"), exports);
65
66
  __exportStar(require("./stream_axis_definition"), exports);
66
67
  __exportStar(require("./stream_axis_type"), exports);
67
68
  __exportStar(require("./stream_buffer"), exports);
69
+ __exportStar(require("./stream_io"), exports);
68
70
  __exportStar(require("./stream_mode"), exports);
69
71
  __exportStar(require("./streams"), exports);
70
72
  __exportStar(require("./transport"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,+CAA6B;AAC7B,kDAAgC;AAChC,kDAAgC;AAChC,8CAA4B;AAC5B,gEAA8C;AAC9C,kEAAgD;AAChD,+CAA6B;AAC7B,sDAAoC;AACpC,2CAAyB;AACzB,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,oDAAkC;AAClC,0DAAwC;AACxC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,uDAAqC;AACrC,kDAAgC;AAChC,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,iDAA+B;AAC/B,iDAA+B;AAC/B,oEAAkD;AAClD,sDAAoC;AACpC,6DAA2C;AAC3C,kDAAgC;AAChC,+CAA6B;AAC7B,wCAAsB;AACtB,wDAAsC;AACtC,kDAAgC;AAChC,+CAA6B;AAC7B,6CAA2B;AAC3B,iDAA+B;AAC/B,6CAA2B;AAC3B,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,mEAAiD;AACjD,4CAA0B;AAC1B,2CAAyB;AACzB,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,mDAAiC;AACjC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,6CAA2B;AAC3B,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event';\nexport * from './all_axes';\nexport * from './axis';\nexport * from './axis_group';\nexport * from './axis_identity';\nexport * from './axis_settings';\nexport * from './axis_type';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_device_response';\nexport * from './connection';\nexport * from './conversion_factor';\nexport * from './device';\nexport * from './device_identity';\nexport * from './device_io';\nexport * from './device_io_info';\nexport * from './device_settings';\nexport * from './digital_output_action';\nexport * from './get_axis_setting';\nexport * from './get_axis_setting_result';\nexport * from './get_setting';\nexport * from './get_setting_result';\nexport * from './io_port_label';\nexport * from './io_port_type';\nexport * from './lockstep';\nexport * from './lockstep_axes';\nexport * from './message_type';\nexport * from './oscilloscope';\nexport * from './oscilloscope_capture_properties';\nexport * from './oscilloscope_data';\nexport * from './oscilloscope_data_source';\nexport * from './paramset_info';\nexport * from './pid_tuning';\nexport * from './pvt';\nexport * from './pvt_axis_definition';\nexport * from './pvt_axis_type';\nexport * from './pvt_buffer';\nexport * from './pvt_mode';\nexport * from './pvt_sequence';\nexport * from './response';\nexport * from './servo_tuner';\nexport * from './servo_tuning_param';\nexport * from './servo_tuning_paramset';\nexport * from './setting_constants';\nexport * from './simple_tuning';\nexport * from './simple_tuning_param_definition';\nexport * from './storage';\nexport * from './stream';\nexport * from './stream_axis_definition';\nexport * from './stream_axis_type';\nexport * from './stream_buffer';\nexport * from './stream_mode';\nexport * from './streams';\nexport * from './transport';\nexport * from './trigger';\nexport * from './trigger_action';\nexport * from './trigger_condition';\nexport * from './trigger_enabled_state';\nexport * from './trigger_operation';\nexport * from './trigger_state';\nexport * from './triggers';\nexport * from './unknown_response_event';\nexport * from './warning_flags';\nexport * from './warnings';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,+CAA6B;AAC7B,kDAAgC;AAChC,kDAAgC;AAChC,8CAA4B;AAC5B,gEAA8C;AAC9C,kEAAgD;AAChD,+CAA6B;AAC7B,sDAAoC;AACpC,2CAAyB;AACzB,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,oDAAkC;AAClC,0DAAwC;AACxC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,uDAAqC;AACrC,kDAAgC;AAChC,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,iDAA+B;AAC/B,iDAA+B;AAC/B,oEAAkD;AAClD,sDAAoC;AACpC,6DAA2C;AAC3C,kDAAgC;AAChC,+CAA6B;AAC7B,wCAAsB;AACtB,wDAAsC;AACtC,kDAAgC;AAChC,+CAA6B;AAC7B,2CAAyB;AACzB,6CAA2B;AAC3B,iDAA+B;AAC/B,6CAA2B;AAC3B,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,mEAAiD;AACjD,4CAA0B;AAC1B,2CAAyB;AACzB,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,mDAAiC;AACjC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,6CAA2B;AAC3B,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event';\nexport * from './all_axes';\nexport * from './axis';\nexport * from './axis_group';\nexport * from './axis_identity';\nexport * from './axis_settings';\nexport * from './axis_type';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_device_response';\nexport * from './connection';\nexport * from './conversion_factor';\nexport * from './device';\nexport * from './device_identity';\nexport * from './device_io';\nexport * from './device_io_info';\nexport * from './device_settings';\nexport * from './digital_output_action';\nexport * from './get_axis_setting';\nexport * from './get_axis_setting_result';\nexport * from './get_setting';\nexport * from './get_setting_result';\nexport * from './io_port_label';\nexport * from './io_port_type';\nexport * from './lockstep';\nexport * from './lockstep_axes';\nexport * from './message_type';\nexport * from './oscilloscope';\nexport * from './oscilloscope_capture_properties';\nexport * from './oscilloscope_data';\nexport * from './oscilloscope_data_source';\nexport * from './paramset_info';\nexport * from './pid_tuning';\nexport * from './pvt';\nexport * from './pvt_axis_definition';\nexport * from './pvt_axis_type';\nexport * from './pvt_buffer';\nexport * from './pvt_io';\nexport * from './pvt_mode';\nexport * from './pvt_sequence';\nexport * from './response';\nexport * from './servo_tuner';\nexport * from './servo_tuning_param';\nexport * from './servo_tuning_paramset';\nexport * from './setting_constants';\nexport * from './simple_tuning';\nexport * from './simple_tuning_param_definition';\nexport * from './storage';\nexport * from './stream';\nexport * from './stream_axis_definition';\nexport * from './stream_axis_type';\nexport * from './stream_buffer';\nexport * from './stream_io';\nexport * from './stream_mode';\nexport * from './streams';\nexport * from './transport';\nexport * from './trigger';\nexport * from './trigger_action';\nexport * from './trigger_condition';\nexport * from './trigger_enabled_state';\nexport * from './trigger_operation';\nexport * from './trigger_state';\nexport * from './triggers';\nexport * from './unknown_response_event';\nexport * from './warning_flags';\nexport * from './warnings';\n"]}
@@ -0,0 +1,100 @@
1
+ import { Device } from './device';
2
+ import { Time, Native } from '../units';
3
+ import { DigitalOutputAction } from './digital_output_action';
4
+ /**
5
+ * Class providing access to I/O for a PVT sequence.
6
+ */
7
+ export declare class PvtIo {
8
+ private _device;
9
+ private _streamId;
10
+ constructor(device: Device, streamId: number);
11
+ /**
12
+ * Sets value for the specified digital output channel.
13
+ * @param channelNumber Channel number starting at 1.
14
+ * @param value The type of action to perform on the channel.
15
+ */
16
+ setDigitalOutput(channelNumber: number, value: DigitalOutputAction): Promise<void>;
17
+ /**
18
+ * Sets values for all digital output channels.
19
+ * @param values The type of action to perform on the channel.
20
+ */
21
+ setAllDigitalOutputs(values: DigitalOutputAction[]): Promise<void>;
22
+ /**
23
+ * Sets value for the specified analog output channel.
24
+ * @param channelNumber Channel number starting at 1.
25
+ * @param value Value to set the output channel voltage to.
26
+ */
27
+ setAnalogOutput(channelNumber: number, value: number): Promise<void>;
28
+ /**
29
+ * Sets values for all analog output channels.
30
+ * @param values Voltage values to set the output channels to.
31
+ */
32
+ setAllAnalogOutputs(values: number[]): Promise<void>;
33
+ /**
34
+ * Sets current and future value for the specified digital output channel.
35
+ * Requires at least Firmware 7.37.
36
+ * @param channelNumber Channel number starting at 1.
37
+ * @param value The type of action to perform immediately on the channel.
38
+ * @param futureValue The type of action to perform in the future on the channel.
39
+ * @param delay Delay between setting current value and setting future value.
40
+ * @param [unit=Units.NATIVE] Units of time.
41
+ */
42
+ setDigitalOutputSchedule(channelNumber: number, value: DigitalOutputAction, futureValue: DigitalOutputAction, delay: number, unit?: Time | Native): Promise<void>;
43
+ /**
44
+ * Sets current and future values for all digital output channels.
45
+ * Requires at least Firmware 7.37.
46
+ * @param values The type of actions to perform immediately on output channels.
47
+ * @param futureValues The type of actions to perform in the future on output channels.
48
+ * @param delay Delay between setting current values and setting future values.
49
+ * @param [unit=Units.NATIVE] Units of time.
50
+ */
51
+ setAllDigitalOutputsSchedule(values: DigitalOutputAction[], futureValues: DigitalOutputAction[], delay: number, unit?: Time | Native): Promise<void>;
52
+ /**
53
+ * Sets current and future value for the specified analog output channel.
54
+ * Requires at least Firmware 7.38.
55
+ * @param channelNumber Channel number starting at 1.
56
+ * @param value Value to set the output channel voltage to immediately.
57
+ * @param futureValue Value to set the output channel voltage to in the future.
58
+ * @param delay Delay between setting current value and setting future value.
59
+ * @param [unit=Units.NATIVE] Units of time.
60
+ */
61
+ setAnalogOutputSchedule(channelNumber: number, value: number, futureValue: number, delay: number, unit?: Time | Native): Promise<void>;
62
+ /**
63
+ * Sets current and future values for all analog output channels.
64
+ * Requires at least Firmware 7.38.
65
+ * @param values Voltage values to set the output channels to immediately.
66
+ * @param futureValues Voltage values to set the output channels to in the future.
67
+ * @param delay Delay between setting current values and setting future values.
68
+ * @param [unit=Units.NATIVE] Units of time.
69
+ */
70
+ setAllAnalogOutputsSchedule(values: number[], futureValues: number[], delay: number, unit?: Time | Native): Promise<void>;
71
+ /**
72
+ * Cancels a scheduled digital output action.
73
+ * Requires at least Firmware 7.37.
74
+ * @param channelNumber Channel number starting at 1.
75
+ */
76
+ cancelDigitalOutputSchedule(channelNumber: number): Promise<void>;
77
+ /**
78
+ * Cancel all scheduled digital output actions.
79
+ * Requires at least Firmware 7.37.
80
+ * @param [channels=[]] Optionally specify which channels to cancel.
81
+ * Array length must be empty or equal to the number of channels on device.
82
+ * Specifying "True" for a channel will cancel the scheduled digital output action for that channel.
83
+ */
84
+ cancelAllDigitalOutputsSchedule(channels?: boolean[]): Promise<void>;
85
+ /**
86
+ * Cancels a scheduled analog output value.
87
+ * Requires at least Firmware 7.38.
88
+ * @param channelNumber Channel number starting at 1.
89
+ */
90
+ cancelAnalogOutputSchedule(channelNumber: number): Promise<void>;
91
+ /**
92
+ * Cancel all scheduled analog output actions.
93
+ * Requires at least Firmware 7.38.
94
+ * @param [channels=[]] Optionally specify which channels to cancel.
95
+ * Array length must be empty or equal to the number of channels on device.
96
+ * Specifying "True" for a channel will cancel the scheduled analog output value for that channel.
97
+ */
98
+ cancelAllAnalogOutputsSchedule(channels?: boolean[]): Prom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