@zaber/motion 6.3.0 → 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 (56) 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/library.js +1 -1
  27. package/dist/lib/library.js.map +1 -1
  28. package/dist/lib/requests/index.d.ts +6 -0
  29. package/dist/lib/requests/index.d.ts.map +1 -1
  30. package/dist/lib/requests/index.js +6 -0
  31. package/dist/lib/requests/index.js.map +1 -1
  32. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.d.ts +15 -0
  33. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.d.ts.map +1 -0
  34. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.js +36 -0
  35. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.js.map +1 -0
  36. package/dist/lib/requests/stream_cancel_output_schedule_request.d.ts +15 -0
  37. package/dist/lib/requests/stream_cancel_output_schedule_request.d.ts.map +1 -0
  38. package/dist/lib/requests/stream_cancel_output_schedule_request.js +35 -0
  39. package/dist/lib/requests/stream_cancel_output_schedule_request.js.map +1 -0
  40. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.d.ts +18 -0
  41. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.d.ts.map +1 -0
  42. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.js +41 -0
  43. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.js.map +1 -0
  44. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.d.ts +19 -0
  45. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.d.ts.map +1 -0
  46. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.js +42 -0
  47. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.js.map +1 -0
  48. package/dist/lib/requests/stream_set_analog_output_schedule_request.d.ts +19 -0
  49. package/dist/lib/requests/stream_set_analog_output_schedule_request.d.ts.map +1 -0
  50. package/dist/lib/requests/stream_set_analog_output_schedule_request.js +42 -0
  51. package/dist/lib/requests/stream_set_analog_output_schedule_request.js.map +1 -0
  52. package/dist/lib/requests/stream_set_digital_output_schedule_request.d.ts +20 -0
  53. package/dist/lib/requests/stream_set_digital_output_schedule_request.d.ts.map +1 -0
  54. package/dist/lib/requests/stream_set_digital_output_schedule_request.js +43 -0
  55. package/dist/lib/requests/stream_set_digital_output_schedule_request.js.map +1 -0
  56. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"pvt_sequence.js","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence.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,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,QAAQ,EAAE,IAAI,CAAC,KAAK;YACpB,GAAG,EAAE,IAAI;YACT,QAAQ;gBACN,OAAO,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACpD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,wBAAwB,EACxB,OAAO,EACP,QAAQ,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAC7C,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACK,aAAa;QACnB,MAAM,OAAO,GAAkD;YAC7D,GAAG,QAAQ,CAAC,kBAAkB,CAAC,OAAO;YACtC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,QAAQ,EAAE,IAAI,CAAC,KAAK;YACpB,GAAG,EAAE,IAAI;YACT,QAAQ;gBACN,OAAO,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACpD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,wBAAwB,EACxB,OAAO,EACP,QAAQ,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC1C,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC1B,CAAC;CACF;AAzlBD,kCAylBC","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 { Measurement } from '../measurement';\nimport { PvtBuffer } from './pvt_buffer';\nimport { PvtMode } from './pvt_mode';\nimport { PvtAxisDefinition } from './pvt_axis_definition';\nimport { DigitalOutputAction } from './digital_output_action';\n\n/**\n * A handle for a PVT sequence with this number on the device.\n * PVT sequences provide a way execute or store trajectory\n * consisting of points with defined position, velocity, and time.\n * PVT sequence methods append actions to a queue which executes\n * or stores actions in a first in, first out order.\n */\nexport class PvtSequence {\n /**\n * Device that controls this PVT sequence.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The number that identifies the PVT sequence on the device.\n */\n public get pvtId(): number {\n return this._pvtId;\n }\n private _pvtId: number;\n\n /**\n * Current mode of the PVT sequence.\n */\n public get mode(): PvtMode {\n return this._retrieveMode();\n }\n\n /**\n * An array of axes definitions the PVT sequence is set up to control.\n */\n public get axes(): PvtAxisDefinition[] {\n return this._retrieveAxes();\n }\n\n constructor(device: Device, pvtId: number) {\n this._device = device;\n this._pvtId = pvtId;\n }\n\n /**\n * Setup the PVT sequence to control the specified axes and to queue actions on the device.\n * Allows use of lockstep axes in a PVT sequence.\n * @param pvtAxes Definition of the PVT sequence axes.\n */\n public async setupLiveComposite(\n ...pvtAxes: PvtAxisDefinition[]\n ): Promise<void> {\n const request: requests.StreamSetupLiveCompositeRequest & gateway.Message = {\n ...requests.StreamSetupLiveCompositeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtAxes: pvtAxes,\n toBinary() {\n return requests.StreamSetupLiveCompositeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_live_composite', request);\n }\n\n /**\n * Setup the PVT sequence to control the specified axes and to queue actions on the device.\n * @param axes Numbers of physical axes to setup the PVT sequence on.\n */\n public async setupLive(\n ...axes: number[]\n ): Promise<void> {\n const request: requests.StreamSetupLiveRequest & gateway.Message = {\n ...requests.StreamSetupLiveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n axes: axes,\n toBinary() {\n return requests.StreamSetupLiveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_live', request);\n }\n\n /**\n * Setup the PVT sequence to use the specified axes and queue actions into a PVT buffer.\n * Allows use of lockstep axes in a PVT sequence.\n * @param pvtBuffer The PVT buffer to queue actions in.\n * @param pvtAxes Definition of the PVT sequence axes.\n */\n public async setupStoreComposite(\n pvtBuffer: PvtBuffer,\n ...pvtAxes: PvtAxisDefinition[]\n ): Promise<void> {\n const request: requests.StreamSetupStoreCompositeRequest & gateway.Message = {\n ...requests.StreamSetupStoreCompositeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n pvtAxes: pvtAxes,\n toBinary() {\n return requests.StreamSetupStoreCompositeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_store_composite', request);\n }\n\n /**\n * Setup the PVT sequence to use the specified axes and queue actions into a PVT buffer.\n * @param pvtBuffer The PVT buffer to queue actions in.\n * @param axes Numbers of physical axes to setup the PVT sequence on.\n */\n public async setupStore(\n pvtBuffer: PvtBuffer,\n ...axes: number[]\n ): Promise<void> {\n const request: requests.StreamSetupStoreRequest & gateway.Message = {\n ...requests.StreamSetupStoreRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n axes: axes,\n toBinary() {\n return requests.StreamSetupStoreRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_store', request);\n }\n\n /**\n * Append the actions in a PVT buffer to the sequence's queue.\n * @param pvtBuffer The PVT buffer to call.\n */\n public async call(\n pvtBuffer: PvtBuffer\n ): Promise<void> {\n const request: requests.StreamCallRequest & gateway.Message = {\n ...requests.StreamCallRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n toBinary() {\n return requests.StreamCallRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_call', request);\n }\n\n /**\n * Queues a point with absolute coordinates in the PVT sequence.\n * If some or all velocities are not provided, the sequence calculates the velocities\n * from surrounding points using finite difference.\n * The last point of the sequence must have defined velocity (likely zero).\n * @param positions Positions for the axes to move through, relative to their home positions.\n * @param velocities The axes velocities at the given point.\n * Specify an empty array or null for specific axes to make the sequence calculate the velocity.\n * @param time The duration between the previous point in the sequence and this one.\n */\n public async point(\n positions: Measurement[],\n velocities: (Measurement | null)[],\n time: Measurement\n ): Promise<void> {\n const request: requests.PvtPointRequest & gateway.Message = {\n ...requests.PvtPointRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.ABS,\n positions: positions,\n velocities: velocities,\n time: time,\n toBinary() {\n return requests.PvtPointRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_point', request);\n }\n\n /**\n * Queues a point with coordinates relative to the previous point in the PVT sequence.\n * If some or all velocities are not provided, the sequence calculates the velocities\n * from surrounding points using finite difference.\n * The last point of the sequence must have defined velocity (likely zero).\n * @param positions Positions for the axes to move through, relative to the previous point.\n * @param velocities The axes velocities at the given point.\n * Specify an empty array or null for specific axes to make the sequence calculate the velocity.\n * @param time The duration between the previous point in the sequence and this one.\n */\n public async pointRelative(\n positions: Measurement[],\n velocities: (Measurement | null)[],\n time: Measurement\n ): Promise<void> {\n const request: requests.PvtPointRequest & gateway.Message = {\n ...requests.PvtPointRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.REL,\n positions: positions,\n velocities: velocities,\n time: time,\n toBinary() {\n return requests.PvtPointRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_point', request);\n }\n\n /**\n * Set the value of a digital output channel.\n * @param channelNumber The number of the digital output channel.\n * Channel numbers are numbered from one.\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.StreamSetDigitalOutputRequest & gateway.Message = {\n ...requests.StreamSetDigitalOutputRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.StreamSetDigitalOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_digital_output', request);\n }\n\n /**\n * Set the value of an analog output channel.\n * @param channelNumber The number of the analog output channel.\n * Channel numbers are numbered from one.\n * @param value The value to set the channel to, in Volts.\n */\n public async setAnalogOutput(\n channelNumber: number,\n value: number\n ): Promise<void> {\n const request: requests.StreamSetAnalogOutputRequest & gateway.Message = {\n ...requests.StreamSetAnalogOutputRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.StreamSetAnalogOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_analog_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.StreamSetAllDigitalOutputsRequest & gateway.Message = {\n ...requests.StreamSetAllDigitalOutputsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n values: values,\n toBinary() {\n return requests.StreamSetAllDigitalOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_all_digital_outputs', request);\n }\n\n /**\n * Sets values for all analog output channels.\n * @param values The values to set the output channels to, in Volts.\n */\n public async setAllAnalogOutputs(\n values: number[]\n ): Promise<void> {\n const request: requests.StreamSetAllAnalogOutputsRequest & gateway.Message = {\n ...requests.StreamSetAllAnalogOutputsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n values: values,\n toBinary() {\n return requests.StreamSetAllAnalogOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_all_analog_outputs', request);\n }\n\n /**\n * Waits until the live PVT sequence executes all queued actions.\n * @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n options: PvtSequence.WaitUntilIdleOptions = {}\n ): Promise<void> {\n const {\n throwErrorOnFault = true,\n } = options;\n const request: requests.StreamWaitUntilIdleRequest & gateway.Message = {\n ...requests.StreamWaitUntilIdleRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n throwErrorOnFault: throwErrorOnFault,\n toBinary() {\n return requests.StreamWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_wait_until_idle', request);\n }\n\n /**\n * Cork the front of the PVT sequences's action queue, blocking execution.\n * Execution resumes upon uncorking the queue, or when the number of queued actions reaches its limit.\n * Corking eliminates discontinuities in motion due to subsequent PVT commands reaching the device late.\n * You can only cork an idle live PVT sequence.\n */\n public async cork(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_cork', request);\n }\n\n /**\n * Uncork the front of the queue, unblocking command execution.\n * You can only uncork an idle live PVT sequence that is corked.\n */\n public async uncork(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_uncork', request);\n }\n\n /**\n * Returns a boolean value indicating whether the live PVT sequence is executing a queued action.\n * @returns True if the PVT sequence is executing a queued action.\n */\n public async isBusy(): Promise<boolean> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/stream_is_busy',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string which represents the PVT sequence.\n * @returns String which represents the PVT sequence.\n */\n public toString(): string {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/stream_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Disables the PVT sequence.\n * If the PVT sequence is not setup, this command does nothing.\n * Once disabled, the PVT sequence will no longer accept PVT commands.\n * The PVT sequence will process the rest of the commands in the queue until it is empty.\n */\n public async disable(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_disable', request);\n }\n\n /**\n * Sends a generic ASCII command to the PVT sequence.\n * Keeps resending the command while the device rejects with AGAIN reason.\n * @param command Command and its parameters.\n */\n public async genericCommand(\n command: string\n ): Promise<void> {\n const request: requests.StreamGenericCommandRequest & gateway.Message = {\n ...requests.StreamGenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n command: command,\n toBinary() {\n return requests.StreamGenericCommandRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_generic_command', request);\n }\n\n /**\n * Sends a batch of generic ASCII commands to the PVT sequence.\n * Keeps resending command while the device rejects with AGAIN reason.\n * The batch is atomic in terms of thread safety.\n * @param batch Array of commands.\n */\n public async genericCommandBatch(\n batch: string[]\n ): Promise<void> {\n const request: requests.StreamGenericCommandBatchRequest & gateway.Message = {\n ...requests.StreamGenericCommandBatchRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n batch: batch,\n toBinary() {\n return requests.StreamGenericCommandBatchRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_generic_command_batch', request);\n }\n\n /**\n * Queries the PVT sequence status from the device\n * and returns boolean indicating whether the PVT sequence is disabled.\n * Useful to determine if execution was interrupted by other movements.\n * @returns True if the PVT sequence is disabled.\n */\n public async checkDisabled(): Promise<boolean> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/stream_check_disabled',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Makes the PVT sequence throw PvtDiscontinuityException when it encounters discontinuities (ND warning flag).\n */\n public treatDiscontinuitiesAsError(): void {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device/stream_treat_discontinuities', request);\n }\n\n /**\n * Prevents PvtDiscontinuityException as a result of expected discontinuity when resuming the sequence.\n */\n public ignoreCurrentDiscontinuity(): void {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device/stream_ignore_discontinuity', request);\n }\n\n /**\n * Gets the axes of the PVT sequence.\n * @returns An array of axis numbers of the axes the PVT sequence is set up to control.\n */\n private _retrieveAxes(): PvtAxisDefinition[] {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StreamGetAxesResponse>(\n 'device/stream_get_axes',\n request,\n requests.StreamGetAxesResponse.fromBinary);\n return response.pvtAxes;\n }\n\n /**\n * Get the mode of the PVT sequence.\n * @returns Mode of the PVT sequence.\n */\n private _retrieveMode(): PvtMode {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StreamModeResponse>(\n 'device/stream_get_mode',\n request,\n requests.StreamModeResponse.fromBinary);\n return response.pvtMode;\n }\n}\n\nnamespace PvtSequence {\n export interface WaitUntilIdleOptions {\n throwErrorOnFault?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;AAxmBD,kCAwmBC","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 { Measurement } from '../measurement';\nimport { PvtBuffer } from './pvt_buffer';\nimport { PvtMode } from './pvt_mode';\nimport { PvtAxisDefinition } from './pvt_axis_definition';\nimport { PvtIo } from './pvt_io';\nimport { DigitalOutputAction } from './digital_output_action';\n\n/**\n * A handle for a PVT sequence with this number on the device.\n * PVT sequences provide a way execute or store trajectory\n * consisting of points with defined position, velocity, and time.\n * PVT sequence methods append actions to a queue which executes\n * or stores actions in a first in, first out order.\n */\nexport class PvtSequence {\n /**\n * Device that controls this PVT sequence.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The number that identifies the PVT sequence on the device.\n */\n public get pvtId(): number {\n return this._pvtId;\n }\n private _pvtId: number;\n\n /**\n * Current mode of the PVT sequence.\n */\n public get mode(): PvtMode {\n return this._retrieveMode();\n }\n\n /**\n * An array of axes definitions the PVT sequence is set up to control.\n */\n public get axes(): PvtAxisDefinition[] {\n return this._retrieveAxes();\n }\n\n /**\n * Gets an object that provides access to I/O for this sequence.\n */\n public get io(): PvtIo {\n return this._io;\n }\n private _io: PvtIo;\n\n constructor(device: Device, pvtId: number) {\n this._device = device;\n this._pvtId = pvtId;\n this._io = new PvtIo(device, pvtId);\n }\n\n /**\n * Setup the PVT sequence to control the specified axes and to queue actions on the device.\n * Allows use of lockstep axes in a PVT sequence.\n * @param pvtAxes Definition of the PVT sequence axes.\n */\n public async setupLiveComposite(\n ...pvtAxes: PvtAxisDefinition[]\n ): Promise<void> {\n const request: requests.StreamSetupLiveCompositeRequest & gateway.Message = {\n ...requests.StreamSetupLiveCompositeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtAxes: pvtAxes,\n toBinary() {\n return requests.StreamSetupLiveCompositeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_live_composite', request);\n }\n\n /**\n * Setup the PVT sequence to control the specified axes and to queue actions on the device.\n * @param axes Numbers of physical axes to setup the PVT sequence on.\n */\n public async setupLive(\n ...axes: number[]\n ): Promise<void> {\n const request: requests.StreamSetupLiveRequest & gateway.Message = {\n ...requests.StreamSetupLiveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n axes: axes,\n toBinary() {\n return requests.StreamSetupLiveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_live', request);\n }\n\n /**\n * Setup the PVT sequence to use the specified axes and queue actions into a PVT buffer.\n * Allows use of lockstep axes in a PVT sequence.\n * @param pvtBuffer The PVT buffer to queue actions in.\n * @param pvtAxes Definition of the PVT sequence axes.\n */\n public async setupStoreComposite(\n pvtBuffer: PvtBuffer,\n ...pvtAxes: PvtAxisDefinition[]\n ): Promise<void> {\n const request: requests.StreamSetupStoreCompositeRequest & gateway.Message = {\n ...requests.StreamSetupStoreCompositeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n pvtAxes: pvtAxes,\n toBinary() {\n return requests.StreamSetupStoreCompositeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_store_composite', request);\n }\n\n /**\n * Setup the PVT sequence to use the specified axes and queue actions into a PVT buffer.\n * @param pvtBuffer The PVT buffer to queue actions in.\n * @param axes Numbers of physical axes to setup the PVT sequence on.\n */\n public async setupStore(\n pvtBuffer: PvtBuffer,\n ...axes: number[]\n ): Promise<void> {\n const request: requests.StreamSetupStoreRequest & gateway.Message = {\n ...requests.StreamSetupStoreRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n axes: axes,\n toBinary() {\n return requests.StreamSetupStoreRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_store', request);\n }\n\n /**\n * Append the actions in a PVT buffer to the sequence's queue.\n * @param pvtBuffer The PVT buffer to call.\n */\n public async call(\n pvtBuffer: PvtBuffer\n ): Promise<void> {\n const request: requests.StreamCallRequest & gateway.Message = {\n ...requests.StreamCallRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n toBinary() {\n return requests.StreamCallRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_call', request);\n }\n\n /**\n * Queues a point with absolute coordinates in the PVT sequence.\n * If some or all velocities are not provided, the sequence calculates the velocities\n * from surrounding points using finite difference.\n * The last point of the sequence must have defined velocity (likely zero).\n * @param positions Positions for the axes to move through, relative to their home positions.\n * @param velocities The axes velocities at the given point.\n * Specify an empty array or null for specific axes to make the sequence calculate the velocity.\n * @param time The duration between the previous point in the sequence and this one.\n */\n public async point(\n positions: Measurement[],\n velocities: (Measurement | null)[],\n time: Measurement\n ): Promise<void> {\n const request: requests.PvtPointRequest & gateway.Message = {\n ...requests.PvtPointRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.ABS,\n positions: positions,\n velocities: velocities,\n time: time,\n toBinary() {\n return requests.PvtPointRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_point', request);\n }\n\n /**\n * Queues a point with coordinates relative to the previous point in the PVT sequence.\n * If some or all velocities are not provided, the sequence calculates the velocities\n * from surrounding points using finite difference.\n * The last point of the sequence must have defined velocity (likely zero).\n * @param positions Positions for the axes to move through, relative to the previous point.\n * @param velocities The axes velocities at the given point.\n * Specify an empty array or null for specific axes to make the sequence calculate the velocity.\n * @param time The duration between the previous point in the sequence and this one.\n */\n public async pointRelative(\n positions: Measurement[],\n velocities: (Measurement | null)[],\n time: Measurement\n ): Promise<void> {\n const request: requests.PvtPointRequest & gateway.Message = {\n ...requests.PvtPointRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.REL,\n positions: positions,\n velocities: velocities,\n time: time,\n toBinary() {\n return requests.PvtPointRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_point', request);\n }\n\n /**\n * Waits until the live PVT sequence executes all queued actions.\n * @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n options: PvtSequence.WaitUntilIdleOptions = {}\n ): Promise<void> {\n const {\n throwErrorOnFault = true,\n } = options;\n const request: requests.StreamWaitUntilIdleRequest & gateway.Message = {\n ...requests.StreamWaitUntilIdleRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n throwErrorOnFault: throwErrorOnFault,\n toBinary() {\n return requests.StreamWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_wait_until_idle', request);\n }\n\n /**\n * Cork the front of the PVT sequences's action queue, blocking execution.\n * Execution resumes upon uncorking the queue, or when the number of queued actions reaches its limit.\n * Corking eliminates discontinuities in motion due to subsequent PVT commands reaching the device late.\n * You can only cork an idle live PVT sequence.\n */\n public async cork(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_cork', request);\n }\n\n /**\n * Uncork the front of the queue, unblocking command execution.\n * You can only uncork an idle live PVT sequence that is corked.\n */\n public async uncork(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_uncork', request);\n }\n\n /**\n * Returns a boolean value indicating whether the live PVT sequence is executing a queued action.\n * @returns True if the PVT sequence is executing a queued action.\n */\n public async isBusy(): Promise<boolean> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/stream_is_busy',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string which represents the PVT sequence.\n * @returns String which represents the PVT sequence.\n */\n public toString(): string {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/stream_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Disables the PVT sequence.\n * If the PVT sequence is not setup, this command does nothing.\n * Once disabled, the PVT sequence will no longer accept PVT commands.\n * The PVT sequence will process the rest of the commands in the queue until it is empty.\n */\n public async disable(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_disable', request);\n }\n\n /**\n * Sends a generic ASCII command to the PVT sequence.\n * Keeps resending the command while the device rejects with AGAIN reason.\n * @param command Command and its parameters.\n */\n public async genericCommand(\n command: string\n ): Promise<void> {\n const request: requests.StreamGenericCommandRequest & gateway.Message = {\n ...requests.StreamGenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n command: command,\n toBinary() {\n return requests.StreamGenericCommandRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_generic_command', request);\n }\n\n /**\n * Sends a batch of generic ASCII commands to the PVT sequence.\n * Keeps resending command while the device rejects with AGAIN reason.\n * The batch is atomic in terms of thread safety.\n * @param batch Array of commands.\n */\n public async genericCommandBatch(\n batch: string[]\n ): Promise<void> {\n const request: requests.StreamGenericCommandBatchRequest & gateway.Message = {\n ...requests.StreamGenericCommandBatchRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n batch: batch,\n toBinary() {\n return requests.StreamGenericCommandBatchRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_generic_command_batch', request);\n }\n\n /**\n * Queries the PVT sequence status from the device\n * and returns boolean indicating whether the PVT sequence is disabled.\n * Useful to determine if execution was interrupted by other movements.\n * @returns True if the PVT sequence is disabled.\n */\n public async checkDisabled(): Promise<boolean> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/stream_check_disabled',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Makes the PVT sequence throw PvtDiscontinuityException when it encounters discontinuities (ND warning flag).\n */\n public treatDiscontinuitiesAsError(): void {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device/stream_treat_discontinuities', request);\n }\n\n /**\n * Prevents PvtDiscontinuityException as a result of expected discontinuity when resuming the sequence.\n */\n public ignoreCurrentDiscontinuity(): void {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device/stream_ignore_discontinuity', request);\n }\n\n /**\n * Gets the axes of the PVT sequence.\n * @returns An array of axis numbers of the axes the PVT sequence is set up to control.\n */\n private _retrieveAxes(): PvtAxisDefinition[] {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StreamGetAxesResponse>(\n 'device/stream_get_axes',\n request,\n requests.StreamGetAxesResponse.fromBinary);\n return response.pvtAxes;\n }\n\n /**\n * Get the mode of the PVT sequence.\n * @returns Mode of the PVT sequence.\n */\n private _retrieveMode(): PvtMode {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StreamModeResponse>(\n 'device/stream_get_mode',\n request,\n requests.StreamModeResponse.fromBinary);\n return response.pvtMode;\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetDigitalOutput instead.\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.StreamSetDigitalOutputRequest & gateway.Message = {\n ...requests.StreamSetDigitalOutputRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.StreamSetDigitalOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_digital_output', request);\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetAllDigitalOutputs instead.\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.StreamSetAllDigitalOutputsRequest & gateway.Message = {\n ...requests.StreamSetAllDigitalOutputsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n values: values,\n toBinary() {\n return requests.StreamSetAllDigitalOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_all_digital_outputs', request);\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetAnalogOutput instead.\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.StreamSetAnalogOutputRequest & gateway.Message = {\n ...requests.StreamSetAnalogOutputRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.StreamSetAnalogOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_analog_output', request);\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetAllAnalogOutputs instead.\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.StreamSetAllAnalogOutputsRequest & gateway.Message = {\n ...requests.StreamSetAllAnalogOutputsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n values: values,\n toBinary() {\n return requests.StreamSetAllAnalogOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_all_analog_outputs', request);\n }\n}\n\nnamespace PvtSequence {\n export interface WaitUntilIdleOptions {\n throwErrorOnFault?: boolean;\n }\n}\n"]}
@@ -5,6 +5,7 @@ import { Measurement } from '../measurement';
5
5
  import { StreamBuffer } from './stream_buffer';
6
6
  import { StreamMode } from './stream_mode';
7
7
  import { StreamAxisDefinition } from './stream_axis_definition';
8
+ import { StreamIo } from './stream_io';
8
9
  import { DigitalOutputAction } from './digital_output_action';
9
10
  /**
10
11
  * A handle for a stream with this number on the device.
@@ -30,6 +31,11 @@ export declare class Stream {
30
31
  * An array of axes definitions the stream is set up to control.
31
32
  */
32
33
  get axes(): StreamAxisDefinition[];
34
+ /**
35
+ * Gets an object that provides access to I/O for this stream.
36
+ */
37
+ get io(): StreamIo;
38
+ private _io;
33
39
  constructor(device: Device, streamId: number);
34
40
  /**
35
41
  * Setup the stream to control the specified axes and to queue actions on the device.
@@ -216,45 +222,6 @@ export declare class Stream {
216
222
  * @param centerY The second dimension of the position of the center of the circle.
217
223
  */
218
224
  circleRelativeOn(targetAxesIndices: number[], rotationDirection: RotationDirection, centerX: Measurement, centerY: Measurement): Promise<void>;
219
- /**
220
- * Wait for a digital input channel to reach a given value.
221
- * @param channelNumber The number of the digital input channel.
222
- * Channel numbers are numbered from one.
223
- * @param value The value that the stream should wait for.
224
- */
225
- waitDigitalInput(channelNumber: number, value: boolean): Promise<void>;
226
- /**
227
- * Wait for the value of a analog input channel to reach a condition concerning a given value.
228
- * @param channelNumber The number of the analog input channel.
229
- * Channel numbers are numbered from one.
230
- * @param condition A condition (e.g. <, <=, ==, !=).
231
- * @param value The value that the condition concerns, in Volts.
232
- */
233
- waitAnalogInput(channelNumber: number, condition: string, value: number): Promise<void>;
234
- /**
235
- * Set the value of a digital output channel.
236
- * @param channelNumber The number of the digital output channel.
237
- * Channel numbers are numbered from one.
238
- * @param value The type of action to perform on the channel.
239
- */
240
- setDigitalOutput(channelNumber: number, value: DigitalOutputAction): Promise<void>;
241
- /**
242
- * Set the value of an analog output channel.
243
- * @param channelNumber The number of the analog output channel.
244
- * Channel numbers are numbered from one.
245
- * @param value The value to set the channel to, in Volts.
246
- */
247
- setAnalogOutput(channelNumber: number, value: number): Promise<void>;
248
- /**
249
- * Sets values for all digital output channels.
250
- * @param values The type of action to perform on the channel.
251
- */
252
- setAllDigitalOutputs(values: DigitalOutputAction[]): Promise<void>;
253
- /**
254
- * Sets values for all analog output channels.
255
- * @param values The values to set the output channels to, in Volts.
256
- */
257
- setAllAnalogOutputs(values: number[]): Promise<void>;
258
225
  /**
259
226
  * Wait a specified time.
260
227
  * @param time Amount of time to wait.
@@ -375,6 +342,55 @@ export declare class Stream {
375
342
  * @returns Mode of the stream.
376
343
  */
377
344
  private _retrieveMode;
345
+ /**
346
+ * @deprecated Use Stream.Io.WaitDigitalInput instead.
347
+ *
348
+ * Wait for a digital input channel to reach a given value.
349
+ * @param channelNumber The number of the digital input channel.
350
+ * Channel numbers are numbered from one.
351
+ * @param value The value that the stream should wait for.
352
+ */
353
+ waitDigitalInput(channelNumber: number, value: boolean): Promise<void>;
354
+ /**
355
+ * @deprecated Use Stream.Io.WaitAnalogInput instead.
356
+ *
357
+ * Wait for the value of a analog input channel to reach a condition concerning a given value.
358
+ * @param channelNumber The number of the analog input channel.
359
+ * Channel numbers are numbered from one.
360
+ * @param condition A condition (e.g. <, <=, ==, !=).
361
+ * @param value The value that the condition concerns, in Volts.
362
+ */
363
+ waitAnalogInput(channelNumber: number, condition: string, value: number): Promise<void>;
364
+ /**
365
+ * @deprecated Use Stream.Io.SetDigitalOutput instead.
366
+ *
367
+ * Sets value for the specified digital output channel.
368
+ * @param channelNumber Channel number starting at 1.
369
+ * @param value The type of action to perform on the channel.
370
+ */
371
+ setDigitalOutput(channelNumber: number, value: DigitalOutputAction): Promise<void>;
372
+ /**
373
+ * @deprecated Use Stream.Io.SetAllDigitalOutputs instead.
374
+ *
375
+ * Sets values for all digital output channels.
376
+ * @param values The type of action to perform on the channel.
377
+ */
378
+ setAllDigitalOutputs(values: DigitalOutputAction[]): Promise<void>;
379
+ /**
380
+ * @deprecated Use Stream.Io.setAnalogOutput instead.
381
+ *
382
+ * Sets value for the specified analog output channel.
383
+ * @param channelNumber Channel number starting at 1.
384
+ * @param value Value to set the output channel voltage to.
385
+ */
386
+ setAnalogOutput(channelNumber: number, value: number): Promise<void>;
387
+ /**
388
+ * @deprecated Use Stream.Io.setAllAnalogOutputs instead.
389
+ *
390
+ * Sets values for all analog output channels.
391
+ * @param values Voltage values to set the output channels to.
392
+ */
393
+ setAllAnalogOutputs(values: number[]): Promise<void>;
378
394
  }
379
395
  declare namespace Stream {
380
396
  interface WaitUntilIdleOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../src/ascii/stream.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,QAAQ,EAAS,MAAM,UAAU,CAAC;AAC7G,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C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,CAAC,IAAI,CAAC;IAgBhB;;;;;OAKG;IACU,mBAAmB,CAC9B,MAAM,EAAE,MAAM,EAAE,GACf,OAAO,CAAC,IAAI,CAAC;CAcjB;AAED,kBAAU,MAAM,CAAC;IACf,UAAiB,oBAAoB;QACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC/B;CACF"}
@@ -29,6 +29,7 @@ exports.Stream = void 0;
29
29
  const units_1 = require("../units");
30
30
  const gateway = __importStar(require("../gateway"));
31
31
  const requests = __importStar(require("../requests"));
32
+ const stream_io_1 = require("./stream_io");
32
33
  /**
33
34
  * A handle for a stream with this number on the device.
34
35
  * Streams provide a way to execute or store a sequence of actions.
@@ -59,9 +60,16 @@ class Stream {
59
60
  get axes() {
60
61
  return this._retrieveAxes();
61
62
  }
63
+ /**
64
+ * Gets an object that provides access to I/O for this stream.
65
+ */
66
+ get io() {
67
+ return this._io;
68
+ }
62
69
  constructor(device, streamId) {
63
70
  this._device = device;
64
71
  this._streamId = streamId;
72
+ this._io = new stream_io_1.StreamIo(device, streamId);
65
73
  }
66
74
  /**
67
75
  * Setup the stream to control the specified axes and to queue actions on the device.
@@ -547,122 +555,6 @@ class Stream {
547
555
  };
548
556
  await gateway.callAsync('device/stream_circle', request);
549
557
  }
550
- /**
551
- * Wait for a digital input channel to reach a given value.
552
- * @param channelNumber The number of the digital input channel.
553
- * Channel numbers are numbered from one.
554
- * @param value The value that the stream should wait for.
555
- */
556
- async waitDigitalInput(channelNumber, value) {
557
- const request = {
558
- ...requests.StreamWaitDigitalInputRequest.DEFAULT,
559
- interfaceId: this.device.connection.interfaceId,
560
- device: this.device.deviceAddress,
561
- streamId: this.streamId,
562
- channelNumber: channelNumber,
563
- value: value,
564
- toBinary() {
565
- return requests.StreamWaitDigitalInputRequest.toBinary(this);
566
- },
567
- };
568
- await gateway.callAsync('device/stream_wait_digital_input', request);
569
- }
570
- /**
571
- * Wait for the value of a analog input channel to reach a condition concerning a given value.
572
- * @param channelNumber The number of the analog input channel.
573
- * Channel numbers are numbered from one.
574
- * @param condition A condition (e.g. <, <=, ==, !=).
575
- * @param value The value that the condition concerns, in Volts.
576
- */
577
- async waitAnalogInput(channelNumber, condition, value) {
578
- const request = {
579
- ...requests.StreamWaitAnalogInputRequest.DEFAULT,
580
- interfaceId: this.device.connection.interfaceId,
581
- device: this.device.deviceAddress,
582
- streamId: this.streamId,
583
- channelNumber: channelNumber,
584
- condition: condition,
585
- value: value,
586
- toBinary() {
587
- return requests.StreamWaitAnalogInputRequest.toBinary(this);
588
- },
589
- };
590
- await gateway.callAsync('device/stream_wait_analog_input', request);
591
- }
592
- /**
593
- * Set the value of a digital output channel.
594
- * @param channelNumber The number of the digital output channel.
595
- * Channel numbers are numbered from one.
596
- * @param value The type of action to perform on the channel.
597
- */
598
- async setDigitalOutput(channelNumber, value) {
599
- const request = {
600
- ...requests.StreamSetDigitalOutputRequest.DEFAULT,
601
- interfaceId: this.device.connection.interfaceId,
602
- device: this.device.deviceAddress,
603
- streamId: this.streamId,
604
- channelNumber: channelNumber,
605
- value: value,
606
- toBinary() {
607
- return requests.StreamSetDigitalOutputRequest.toBinary(this);
608
- },
609
- };
610
- await gateway.callAsync('device/stream_set_digital_output', request);
611
- }
612
- /**
613
- * Set the value of an analog output channel.
614
- * @param channelNumber The number of the analog output channel.
615
- * Channel numbers are numbered from one.
616
- * @param value The value to set the channel to, in Volts.
617
- */
618
- async setAnalogOutput(channelNumber, value) {
619
- const request = {
620
- ...requests.StreamSetAnalogOutputRequest.DEFAULT,
621
- interfaceId: this.device.connection.interfaceId,
622
- device: this.device.deviceAddress,
623
- streamId: this.streamId,
624
- channelNumber: channelNumber,
625
- value: value,
626
- toBinary() {
627
- return requests.StreamSetAnalogOutputRequest.toBinary(this);
628
- },
629
- };
630
- await gateway.callAsync('device/stream_set_analog_output', request);
631
- }
632
- /**
633
- * Sets values for all digital output channels.
634
- * @param values The type of action to perform on the channel.
635
- */
636
- async setAllDigitalOutputs(values) {
637
- const request = {
638
- ...requests.StreamSetAllDigitalOutputsRequest.DEFAULT,
639
- interfaceId: this.device.connection.interfaceId,
640
- device: this.device.deviceAddress,
641
- streamId: this.streamId,
642
- values: values,
643
- toBinary() {
644
- return requests.StreamSetAllDigitalOutputsRequest.toBinary(this);
645
- },
646
- };
647
- await gateway.callAsync('device/stream_set_all_digital_outputs', request);
648
- }
649
- /**
650
- * Sets values for all analog output channels.
651
- * @param values The values to set the output channels to, in Volts.
652
- */
653
- async setAllAnalogOutputs(values) {
654
- const request = {
655
- ...requests.StreamSetAllAnalogOutputsRequest.DEFAULT,
656
- interfaceId: this.device.connection.interfaceId,
657
- device: this.device.deviceAddress,
658
- streamId: this.streamId,
659
- values: values,
660
- toBinary() {
661
- return requests.StreamSetAllAnalogOutputsRequest.toBinary(this);
662
- },
663
- };
664
- await gateway.callAsync('device/stream_set_all_analog_outputs', request);
665
- }
666
558
  /**
667
559
  * Wait a specified time.
668
560
  * @param time Amount of time to wait.
@@ -1026,6 +918,132 @@ class Stream {
1026
918
  const response = gateway.callSync('device/stream_get_mode', request, requests.StreamModeResponse.fromBinary);
1027
919
  return response.streamMode;
1028
920
  }
921
+ /**
922
+ * @deprecated Use Stream.Io.WaitDigitalInput instead.
923
+ *
924
+ * Wait for a digital input channel to reach a given value.
925
+ * @param channelNumber The number of the digital input channel.
926
+ * Channel numbers are numbered from one.
927
+ * @param value The value that the stream should wait for.
928
+ */
929
+ async waitDigitalInput(channelNumber, value) {
930
+ const request = {
931
+ ...requests.StreamWaitDigitalInputRequest.DEFAULT,
932
+ interfaceId: this.device.connection.interfaceId,
933
+ device: this.device.deviceAddress,
934
+ streamId: this.streamId,
935
+ channelNumber: channelNumber,
936
+ value: value,
937
+ toBinary() {
938
+ return requests.StreamWaitDigitalInputRequest.toBinary(this);
939
+ },
940
+ };
941
+ await gateway.callAsync('device/stream_wait_digital_input', request);
942
+ }
943
+ /**
944
+ * @deprecated Use Stream.Io.WaitAnalogInput instead.
945
+ *
946
+ * Wait for the value of a analog input channel to reach a condition concerning a given value.
947
+ * @param channelNumber The number of the analog input channel.
948
+ * Channel numbers are numbered from one.
949
+ * @param condition A condition (e.g. <, <=, ==, !=).
950
+ * @param value The value that the condition concerns, in Volts.
951
+ */
952
+ async waitAnalogInput(channelNumber, condition, value) {
953
+ const request = {
954
+ ...requests.StreamWaitAnalogInputRequest.DEFAULT,
955
+ interfaceId: this.device.connection.interfaceId,
956
+ device: this.device.deviceAddress,
957
+ streamId: this.streamId,
958
+ channelNumber: channelNumber,
959
+ condition: condition,
960
+ value: value,
961
+ toBinary() {
962
+ return requests.StreamWaitAnalogInputRequest.toBinary(this);
963
+ },
964
+ };
965
+ await gateway.callAsync('device/stream_wait_analog_input', request);
966
+ }
967
+ /**
968
+ * @deprecated Use Stream.Io.SetDigitalOutput instead.
969
+ *
970
+ * Sets value for the specified digital output channel.
971
+ * @param channelNumber Channel number starting at 1.
972
+ * @param value The type of action to perform on the channel.
973
+ */
974
+ async setDigitalOutput(channelNumber, value) {
975
+ const request = {
976
+ ...requests.StreamSetDigitalOutputRequest.DEFAULT,
977
+ interfaceId: this.device.connection.interfaceId,
978
+ device: this.device.deviceAddress,
979
+ streamId: this.streamId,
980
+ channelNumber: channelNumber,
981
+ value: value,
982
+ toBinary() {
983
+ return requests.StreamSetDigitalOutputRequest.toBinary(this);
984
+ },
985
+ };
986
+ await gateway.callAsync('device/stream_set_digital_output', request);
987
+ }
988
+ /**
989
+ * @deprecated Use Stream.Io.SetAllDigitalOutputs instead.
990
+ *
991
+ * Sets values for all digital output channels.
992
+ * @param values The type of action to perform on the channel.
993
+ */
994
+ async setAllDigitalOutputs(values) {
995
+ const request = {
996
+ ...requests.StreamSetAllDigitalOutputsRequest.DEFAULT,
997
+ interfaceId: this.device.connection.interfaceId,
998
+ device: this.device.deviceAddress,
999
+ streamId: this.streamId,
1000
+ values: values,
1001
+ toBinary() {
1002
+ return requests.StreamSetAllDigitalOutputsRequest.toBinary(this);
1003
+ },
1004
+ };
1005
+ await gateway.callAsync('device/stream_set_all_digital_outputs', request);
1006
+ }
1007
+ /**
1008
+ * @deprecated Use Stream.Io.setAnalogOutput instead.
1009
+ *
1010
+ * Sets value for the specified analog output channel.
1011
+ * @param channelNumber Channel number starting at 1.
1012
+ * @param value Value to set the output channel voltage to.
1013
+ */
1014
+ async setAnalogOutput(channelNumber, value) {
1015
+ const request = {
1016
+ ...requests.StreamSetAnalogOutputRequest.DEFAULT,
1017
+ interfaceId: this.device.connection.interfaceId,
1018
+ device: this.device.deviceAddress,
1019
+ streamId: this.streamId,
1020
+ channelNumber: channelNumber,
1021
+ value: value,
1022
+ toBinary() {
1023
+ return requests.StreamSetAnalogOutputRequest.toBinary(this);
1024
+ },
1025
+ };
1026
+ await gateway.callAsync('device/stream_set_analog_output', request);
1027
+ }
1028
+ /**
1029
+ * @deprecated Use Stream.Io.setAllAnalogOutputs instead.
1030
+ *
1031
+ * Sets values for all analog output channels.
1032
+ * @param values Voltage values to set the output channels to.
1033
+ */
1034
+ async setAllAnalogOutputs(values) {
1035
+ const request = {
1036
+ ...requests.StreamSetAllAnalogOutputsRequest.DEFAULT,
1037
+ interfaceId: this.device.connection.interfaceId,
1038
+ device: this.device.deviceAddress,
1039
+ streamId: this.streamId,
1040
+ values: values,
1041
+ toBinary() {
1042
+ return requests.StreamSetAllAnalogOutputsRequest.toBinary(this);
1043
+ },
1044
+ };
1045
+ await gateway.callAsync('device/stream_set_all_analog_outputs', request);
1046
+ }
1029
1047
  }
1030
1048
  exports.Stream = Stream;
1031
1049
  //# sourceMappingURL=stream.js.map