@zaber/motion 8.4.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +423 -80
- package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
- package/dist/lib/ascii/all_axes.d.ts.map +1 -1
- package/dist/lib/ascii/all_axes.js.map +1 -1
- package/dist/lib/ascii/axis.d.ts +9 -9
- package/dist/lib/ascii/axis.d.ts.map +1 -1
- package/dist/lib/ascii/axis.js +6 -6
- package/dist/lib/ascii/axis.js.map +1 -1
- package/dist/lib/ascii/axis_group.d.ts +1 -1
- package/dist/lib/ascii/axis_group.d.ts.map +1 -1
- package/dist/lib/ascii/axis_group.js.map +1 -1
- package/dist/lib/ascii/axis_settings.d.ts +3 -3
- package/dist/lib/ascii/axis_settings.d.ts.map +1 -1
- package/dist/lib/ascii/axis_settings.js +2 -2
- package/dist/lib/ascii/axis_settings.js.map +1 -1
- package/dist/lib/ascii/axis_storage.d.ts +94 -0
- package/dist/lib/ascii/axis_storage.d.ts.map +1 -0
- package/dist/lib/ascii/{storage.js → axis_storage.js} +2 -185
- package/dist/lib/ascii/axis_storage.js.map +1 -0
- package/dist/lib/ascii/can_set_state_device_response.js +1 -1
- package/dist/lib/ascii/can_set_state_device_response.js.map +1 -1
- package/dist/lib/ascii/connection.d.ts +9 -9
- package/dist/lib/ascii/connection.d.ts.map +1 -1
- package/dist/lib/ascii/connection.js +7 -7
- package/dist/lib/ascii/connection.js.map +1 -1
- package/dist/lib/ascii/device.d.ts +13 -13
- package/dist/lib/ascii/device.d.ts.map +1 -1
- package/dist/lib/ascii/device.js +12 -12
- package/dist/lib/ascii/device.js.map +1 -1
- package/dist/lib/ascii/device_io.d.ts +2 -2
- package/dist/lib/ascii/device_io.d.ts.map +1 -1
- package/dist/lib/ascii/device_io.js.map +1 -1
- package/dist/lib/ascii/device_settings.d.ts +2 -2
- package/dist/lib/ascii/device_settings.d.ts.map +1 -1
- package/dist/lib/ascii/device_settings.js +2 -2
- package/dist/lib/ascii/device_settings.js.map +1 -1
- package/dist/lib/ascii/{storage.d.ts → device_storage.d.ts} +1 -93
- package/dist/lib/ascii/device_storage.d.ts.map +1 -0
- package/dist/lib/ascii/device_storage.js +214 -0
- package/dist/lib/ascii/device_storage.js.map +1 -0
- package/dist/lib/ascii/get_setting.js +1 -1
- package/dist/lib/ascii/get_setting.js.map +1 -1
- package/dist/lib/ascii/get_setting_result.js +1 -1
- package/dist/lib/ascii/get_setting_result.js.map +1 -1
- package/dist/lib/ascii/index.d.ts +14 -3
- package/dist/lib/ascii/index.d.ts.map +1 -1
- package/dist/lib/ascii/index.js +14 -3
- package/dist/lib/ascii/index.js.map +1 -1
- package/dist/lib/ascii/lockstep.d.ts +1 -1
- package/dist/lib/ascii/lockstep.d.ts.map +1 -1
- package/dist/lib/ascii/lockstep.js +1 -1
- package/dist/lib/ascii/lockstep.js.map +1 -1
- package/dist/lib/ascii/measurement_sequence.js +1 -1
- package/dist/lib/ascii/measurement_sequence.js.map +1 -1
- package/dist/lib/ascii/mock_device.js +1 -1
- package/dist/lib/ascii/mock_device.js.map +1 -1
- package/dist/lib/ascii/oscilloscope.d.ts +1 -1
- package/dist/lib/ascii/oscilloscope.d.ts.map +1 -1
- package/dist/lib/ascii/oscilloscope.js +2 -2
- package/dist/lib/ascii/oscilloscope.js.map +1 -1
- package/dist/lib/ascii/oscilloscope_data.d.ts.map +1 -1
- package/dist/lib/ascii/oscilloscope_data.js +2 -2
- package/dist/lib/ascii/oscilloscope_data.js.map +1 -1
- package/dist/lib/ascii/paramset_info.js +1 -1
- package/dist/lib/ascii/paramset_info.js.map +1 -1
- package/dist/lib/ascii/pvt.d.ts +5 -5
- package/dist/lib/ascii/pvt.d.ts.map +1 -1
- package/dist/lib/ascii/pvt.js +7 -7
- package/dist/lib/ascii/pvt.js.map +1 -1
- package/dist/lib/ascii/pvt_buffer.d.ts +6 -6
- package/dist/lib/ascii/pvt_buffer.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_buffer.js +10 -11
- package/dist/lib/ascii/pvt_buffer.js.map +1 -1
- package/dist/lib/ascii/pvt_call_action.d.ts +19 -0
- package/dist/lib/ascii/pvt_call_action.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_call_action.js +34 -0
- package/dist/lib/ascii/pvt_call_action.js.map +1 -0
- package/dist/lib/ascii/pvt_cancel_all_outputs_schedule_action.d.ts +24 -0
- package/dist/lib/ascii/pvt_cancel_all_outputs_schedule_action.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_cancel_all_outputs_schedule_action.js +39 -0
- package/dist/lib/ascii/pvt_cancel_all_outputs_schedule_action.js.map +1 -0
- package/dist/lib/ascii/pvt_cancel_output_schedule_action.d.ts +24 -0
- package/dist/lib/ascii/pvt_cancel_output_schedule_action.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_cancel_output_schedule_action.js +39 -0
- package/dist/lib/ascii/pvt_cancel_output_schedule_action.js.map +1 -0
- package/dist/lib/ascii/pvt_csv_data.d.ts +3 -3
- package/dist/lib/ascii/pvt_csv_data.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_csv_data.js +13 -7
- package/dist/lib/ascii/pvt_csv_data.js.map +1 -1
- package/dist/lib/ascii/pvt_io.d.ts +1 -1
- package/dist/lib/ascii/pvt_io.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_io.js +1 -1
- package/dist/lib/ascii/pvt_io.js.map +1 -1
- package/dist/lib/ascii/pvt_partial_csv_data.d.ts +25 -0
- package/dist/lib/ascii/pvt_partial_csv_data.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_partial_csv_data.js +45 -0
- package/dist/lib/ascii/pvt_partial_csv_data.js.map +1 -0
- package/dist/lib/ascii/pvt_partial_point.d.ts +35 -0
- package/dist/lib/ascii/pvt_partial_point.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_partial_point.js +47 -0
- package/dist/lib/ascii/pvt_partial_point.js.map +1 -0
- package/dist/lib/ascii/pvt_partial_sequence_item.d.ts +28 -0
- package/dist/lib/ascii/pvt_partial_sequence_item.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_partial_sequence_item.js +127 -0
- package/dist/lib/ascii/pvt_partial_sequence_item.js.map +1 -0
- package/dist/lib/ascii/pvt_point.d.ts +33 -0
- package/dist/lib/ascii/pvt_point.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_point.js +47 -0
- package/dist/lib/ascii/pvt_point.js.map +1 -0
- package/dist/lib/ascii/pvt_sequence.d.ts +196 -42
- package/dist/lib/ascii/pvt_sequence.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_sequence.js +255 -53
- package/dist/lib/ascii/pvt_sequence.js.map +1 -1
- package/dist/lib/ascii/pvt_sequence_item.d.ts +28 -0
- package/dist/lib/ascii/pvt_sequence_item.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_sequence_item.js +127 -0
- package/dist/lib/ascii/pvt_sequence_item.js.map +1 -0
- package/dist/lib/ascii/pvt_set_all_analog_outputs_action.d.ts +29 -0
- package/dist/lib/ascii/pvt_set_all_analog_outputs_action.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_set_all_analog_outputs_action.js +42 -0
- package/dist/lib/ascii/pvt_set_all_analog_outputs_action.js.map +1 -0
- package/dist/lib/ascii/pvt_set_all_digital_outputs_action.d.ts +30 -0
- package/dist/lib/ascii/pvt_set_all_digital_outputs_action.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_set_all_digital_outputs_action.js +44 -0
- package/dist/lib/ascii/pvt_set_all_digital_outputs_action.js.map +1 -0
- package/dist/lib/ascii/pvt_set_analog_output_action.d.ts +32 -0
- package/dist/lib/ascii/pvt_set_analog_output_action.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_set_analog_output_action.js +47 -0
- package/dist/lib/ascii/pvt_set_analog_output_action.js.map +1 -0
- package/dist/lib/ascii/pvt_set_digital_output_action.d.ts +33 -0
- package/dist/lib/ascii/pvt_set_digital_output_action.d.ts.map +1 -0
- package/dist/lib/ascii/pvt_set_digital_output_action.js +48 -0
- package/dist/lib/ascii/pvt_set_digital_output_action.js.map +1 -0
- package/dist/lib/ascii/servo_tuner.d.ts +4 -4
- package/dist/lib/ascii/servo_tuner.d.ts.map +1 -1
- package/dist/lib/ascii/servo_tuner.js +1 -1
- package/dist/lib/ascii/servo_tuner.js.map +1 -1
- package/dist/lib/ascii/set_state_axis_response.js +1 -1
- package/dist/lib/ascii/set_state_axis_response.js.map +1 -1
- package/dist/lib/ascii/set_state_device_response.js +2 -2
- package/dist/lib/ascii/set_state_device_response.js.map +1 -1
- package/dist/lib/ascii/simple_tuning.js +1 -1
- package/dist/lib/ascii/simple_tuning.js.map +1 -1
- package/dist/lib/ascii/stream.d.ts +6 -6
- package/dist/lib/ascii/stream.d.ts.map +1 -1
- package/dist/lib/ascii/stream.js +6 -6
- package/dist/lib/ascii/stream.js.map +1 -1
- package/dist/lib/ascii/stream_buffer.d.ts +3 -3
- package/dist/lib/ascii/stream_buffer.d.ts.map +1 -1
- package/dist/lib/ascii/stream_buffer.js +6 -6
- package/dist/lib/ascii/stream_buffer.js.map +1 -1
- package/dist/lib/ascii/stream_io.d.ts +1 -1
- package/dist/lib/ascii/stream_io.d.ts.map +1 -1
- package/dist/lib/ascii/stream_io.js +1 -1
- package/dist/lib/ascii/stream_io.js.map +1 -1
- package/dist/lib/ascii/streams.d.ts +4 -4
- package/dist/lib/ascii/streams.d.ts.map +1 -1
- package/dist/lib/ascii/streams.js +6 -6
- package/dist/lib/ascii/streams.js.map +1 -1
- package/dist/lib/ascii/transport.d.ts +4 -4
- package/dist/lib/ascii/transport.d.ts.map +1 -1
- package/dist/lib/ascii/transport.js +5 -5
- package/dist/lib/ascii/transport.js.map +1 -1
- package/dist/lib/ascii/trigger.d.ts +3 -3
- package/dist/lib/ascii/trigger.d.ts.map +1 -1
- package/dist/lib/ascii/trigger.js +2 -2
- package/dist/lib/ascii/trigger.js.map +1 -1
- package/dist/lib/ascii/trigger_state.js +1 -1
- package/dist/lib/ascii/trigger_state.js.map +1 -1
- package/dist/lib/ascii/triggers.d.ts +1 -1
- package/dist/lib/ascii/triggers.d.ts.map +1 -1
- package/dist/lib/ascii/triggers.js.map +1 -1
- package/dist/lib/ascii/warnings.d.ts.map +1 -1
- package/dist/lib/ascii/warnings.js.map +1 -1
- package/dist/lib/binary/connection.d.ts +9 -9
- package/dist/lib/binary/connection.d.ts.map +1 -1
- package/dist/lib/binary/connection.js +7 -7
- package/dist/lib/binary/connection.js.map +1 -1
- package/dist/lib/binary/device.d.ts +4 -4
- package/dist/lib/binary/device.d.ts.map +1 -1
- package/dist/lib/binary/device.js +3 -3
- package/dist/lib/binary/device.js.map +1 -1
- package/dist/lib/binary/device_settings.d.ts +2 -2
- package/dist/lib/binary/device_settings.d.ts.map +1 -1
- package/dist/lib/binary/device_settings.js +1 -1
- package/dist/lib/binary/device_settings.js.map +1 -1
- package/dist/lib/exceptions/device_address_conflict_exception_data.js +1 -1
- package/dist/lib/exceptions/device_address_conflict_exception_data.js.map +1 -1
- package/dist/lib/exceptions/device_db_failed_exception_data.js +1 -1
- package/dist/lib/exceptions/device_db_failed_exception_data.js.map +1 -1
- package/dist/lib/exceptions/device_db_inner_error.js +1 -1
- package/dist/lib/exceptions/device_db_inner_error.js.map +1 -1
- package/dist/lib/exceptions/ge_1_gripper_movement_failed_exception.d.ts +8 -0
- package/dist/lib/exceptions/ge_1_gripper_movement_failed_exception.d.ts.map +1 -0
- package/dist/lib/exceptions/ge_1_gripper_movement_failed_exception.js +17 -0
- package/dist/lib/exceptions/ge_1_gripper_movement_failed_exception.js.map +1 -0
- package/dist/lib/exceptions/index.d.ts +1 -1
- package/dist/lib/exceptions/index.d.ts.map +1 -1
- package/dist/lib/exceptions/index.js +1 -1
- package/dist/lib/exceptions/index.js.map +1 -1
- package/dist/lib/exceptions/movement_failed_exception_data.js +1 -1
- package/dist/lib/exceptions/movement_failed_exception_data.js.map +1 -1
- package/dist/lib/exceptions/movement_interrupted_exception_data.js +1 -1
- package/dist/lib/exceptions/movement_interrupted_exception_data.js.map +1 -1
- package/dist/lib/exceptions/operation_failed_exception_data.js +1 -1
- package/dist/lib/exceptions/operation_failed_exception_data.js.map +1 -1
- package/dist/lib/exceptions/pvt_execution_exception_data.js +1 -1
- package/dist/lib/exceptions/pvt_execution_exception_data.js.map +1 -1
- package/dist/lib/exceptions/pvt_movement_failed_exception_data.js +1 -1
- package/dist/lib/exceptions/pvt_movement_failed_exception_data.js.map +1 -1
- package/dist/lib/exceptions/pvt_movement_interrupted_exception_data.js +1 -1
- package/dist/lib/exceptions/pvt_movement_interrupted_exception_data.js.map +1 -1
- package/dist/lib/exceptions/set_device_state_exception_data.js +7 -7
- package/dist/lib/exceptions/set_device_state_exception_data.js.map +1 -1
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js +3 -3
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js.map +1 -1
- package/dist/lib/exceptions/stream_movement_failed_exception_data.js +1 -1
- package/dist/lib/exceptions/stream_movement_failed_exception_data.js.map +1 -1
- package/dist/lib/exceptions/stream_movement_interrupted_exception_data.js +1 -1
- package/dist/lib/exceptions/stream_movement_interrupted_exception_data.js.map +1 -1
- package/dist/lib/gateway/call.d.ts.map +1 -1
- package/dist/lib/gateway/call.js +12 -0
- package/dist/lib/gateway/call.js.map +1 -1
- package/dist/lib/gateway/constants.d.ts +4 -0
- package/dist/lib/gateway/constants.d.ts.map +1 -0
- package/dist/lib/gateway/constants.js +8 -0
- package/dist/lib/gateway/constants.js.map +1 -0
- package/dist/lib/gateway/convert_exceptions.js +1 -1
- package/dist/lib/gateway/convert_exceptions.js.map +1 -1
- package/dist/lib/gateway/index.d.ts +1 -0
- package/dist/lib/gateway/index.d.ts.map +1 -1
- package/dist/lib/gateway/index.js +3 -1
- package/dist/lib/gateway/index.js.map +1 -1
- package/dist/lib/gateway/wasm-exec.d.ts +1 -1
- package/dist/lib/gateway/wasm-exec.d.ts.map +1 -1
- package/dist/lib/gateway/wasm-exec.js +74 -62
- package/dist/lib/gateway/wasm-exec.js.map +1 -1
- package/dist/lib/gcode/device_definition.js +1 -1
- package/dist/lib/gcode/device_definition.js.map +1 -1
- package/dist/lib/gcode/offline_translator.d.ts +4 -4
- package/dist/lib/gcode/offline_translator.d.ts.map +1 -1
- package/dist/lib/gcode/offline_translator.js +2 -2
- package/dist/lib/gcode/offline_translator.js.map +1 -1
- package/dist/lib/gcode/translate_result.js +2 -2
- package/dist/lib/gcode/translate_result.js.map +1 -1
- package/dist/lib/gcode/translator.d.ts +2 -2
- package/dist/lib/gcode/translator.d.ts.map +1 -1
- package/dist/lib/gcode/translator.js +1 -1
- package/dist/lib/gcode/translator.js.map +1 -1
- package/dist/lib/gcode/translator_config.js +2 -2
- package/dist/lib/gcode/translator_config.js.map +1 -1
- package/dist/lib/library.d.ts +6 -2
- package/dist/lib/library.d.ts.map +1 -1
- package/dist/lib/library.js +6 -2
- package/dist/lib/library.js.map +1 -1
- package/dist/lib/microscopy/autofocus.d.ts +2 -2
- package/dist/lib/microscopy/autofocus.d.ts.map +1 -1
- package/dist/lib/microscopy/autofocus.js.map +1 -1
- package/dist/lib/microscopy/camera_trigger.d.ts +1 -1
- package/dist/lib/microscopy/camera_trigger.d.ts.map +1 -1
- package/dist/lib/microscopy/camera_trigger.js.map +1 -1
- package/dist/lib/microscopy/filter_changer.d.ts.map +1 -1
- package/dist/lib/microscopy/filter_changer.js.map +1 -1
- package/dist/lib/microscopy/illuminator.d.ts +1 -1
- package/dist/lib/microscopy/illuminator.d.ts.map +1 -1
- package/dist/lib/microscopy/illuminator.js +2 -2
- package/dist/lib/microscopy/illuminator.js.map +1 -1
- package/dist/lib/microscopy/illuminator_channel.d.ts +4 -4
- package/dist/lib/microscopy/illuminator_channel.d.ts.map +1 -1
- package/dist/lib/microscopy/illuminator_channel.js +6 -6
- package/dist/lib/microscopy/illuminator_channel.js.map +1 -1
- package/dist/lib/microscopy/microscope.d.ts +4 -4
- package/dist/lib/microscopy/microscope.d.ts.map +1 -1
- package/dist/lib/microscopy/microscope.js +6 -6
- package/dist/lib/microscopy/microscope.js.map +1 -1
- package/dist/lib/microscopy/objective_changer.d.ts +1 -1
- package/dist/lib/microscopy/objective_changer.d.ts.map +1 -1
- package/dist/lib/microscopy/objective_changer.js.map +1 -1
- package/dist/lib/microscopy/wdi_autofocus_provider.d.ts +4 -4
- package/dist/lib/microscopy/wdi_autofocus_provider.d.ts.map +1 -1
- package/dist/lib/microscopy/wdi_autofocus_provider.js +6 -6
- package/dist/lib/microscopy/wdi_autofocus_provider.js.map +1 -1
- package/dist/lib/product/ge_1_gripper.d.ts +273 -0
- package/dist/lib/product/ge_1_gripper.d.ts.map +1 -0
- package/dist/lib/product/ge_1_gripper.js +528 -0
- package/dist/lib/product/ge_1_gripper.js.map +1 -0
- package/dist/lib/product/ge_1_gripper_direction.d.ts +15 -0
- package/dist/lib/product/ge_1_gripper_direction.d.ts.map +1 -0
- package/dist/lib/product/ge_1_gripper_direction.js +23 -0
- package/dist/lib/product/ge_1_gripper_direction.js.map +1 -0
- package/dist/lib/product/ge_1_gripper_error.d.ts +37 -0
- package/dist/lib/product/ge_1_gripper_error.d.ts.map +1 -0
- package/dist/lib/product/ge_1_gripper_error.js +45 -0
- package/dist/lib/product/ge_1_gripper_error.js.map +1 -0
- package/dist/lib/product/ge_1_gripper_state.d.ts +23 -0
- package/dist/lib/product/ge_1_gripper_state.d.ts.map +1 -0
- package/dist/lib/product/ge_1_gripper_state.js +31 -0
- package/dist/lib/product/ge_1_gripper_state.js.map +1 -0
- package/dist/lib/product/index.d.ts +4 -0
- package/dist/lib/product/index.d.ts.map +1 -1
- package/dist/lib/product/index.js +4 -0
- package/dist/lib/product/index.js.map +1 -1
- package/dist/lib/product/process.d.ts +7 -7
- package/dist/lib/product/process.d.ts.map +1 -1
- package/dist/lib/product/process.js +8 -8
- package/dist/lib/product/process.js.map +1 -1
- package/dist/lib/product/process_controller.js.map +1 -1
- package/dist/lib/requests/autofocus_get_objective_params_response.js +1 -1
- package/dist/lib/requests/autofocus_get_objective_params_response.js.map +1 -1
- package/dist/lib/requests/autofocus_set_objective_params_request.js +1 -1
- package/dist/lib/requests/autofocus_set_objective_params_request.js.map +1 -1
- package/dist/lib/requests/axes_empty_request.js +3 -3
- package/dist/lib/requests/axes_empty_request.js.map +1 -1
- package/dist/lib/requests/axes_get_setting_request.js +4 -4
- package/dist/lib/requests/axes_get_setting_request.js.map +1 -1
- package/dist/lib/requests/axes_move_request.js +4 -4
- package/dist/lib/requests/axes_move_request.js.map +1 -1
- package/dist/lib/requests/binary_device_detect_response.js +1 -1
- package/dist/lib/requests/binary_device_detect_response.js.map +1 -1
- package/dist/lib/requests/binary_message_collection.js +1 -1
- package/dist/lib/requests/binary_message_collection.js.map +1 -1
- package/dist/lib/requests/device_cancel_all_outputs_schedule_request.js +1 -1
- package/dist/lib/requests/device_cancel_all_outputs_schedule_request.js.map +1 -1
- package/dist/lib/requests/device_detect_response.js +1 -1
- package/dist/lib/requests/device_detect_response.js.map +1 -1
- package/dist/lib/requests/device_get_all_analog_io_response.js +1 -1
- package/dist/lib/requests/device_get_all_analog_io_response.js.map +1 -1
- package/dist/lib/requests/device_get_all_digital_io_response.js +1 -1
- package/dist/lib/requests/device_get_all_digital_io_response.js.map +1 -1
- package/dist/lib/requests/device_get_warnings_response.js +1 -1
- package/dist/lib/requests/device_get_warnings_response.js.map +1 -1
- package/dist/lib/requests/device_multi_get_setting_request.js +2 -2
- package/dist/lib/requests/device_multi_get_setting_request.js.map +1 -1
- package/dist/lib/requests/device_on_all_response.js +1 -1
- package/dist/lib/requests/device_on_all_response.js.map +1 -1
- package/dist/lib/requests/device_set_all_analog_outputs_request.js +1 -1
- package/dist/lib/requests/device_set_all_analog_outputs_request.js.map +1 -1
- package/dist/lib/requests/device_set_all_analog_outputs_schedule_request.js +2 -2
- package/dist/lib/requests/device_set_all_analog_outputs_schedule_request.js.map +1 -1
- package/dist/lib/requests/device_set_all_digital_outputs_request.js +1 -1
- package/dist/lib/requests/device_set_all_digital_outputs_request.js.map +1 -1
- package/dist/lib/requests/device_set_all_digital_outputs_schedule_request.js +2 -2
- package/dist/lib/requests/device_set_all_digital_outputs_schedule_request.js.map +1 -1
- package/dist/lib/requests/device_set_unit_conversions_request.js +1 -1
- package/dist/lib/requests/device_set_unit_conversions_request.js.map +1 -1
- package/dist/lib/requests/discover_tcp_devices_response.js +1 -1
- package/dist/lib/requests/discover_tcp_devices_response.js.map +1 -1
- package/dist/lib/requests/double_array_response.js +1 -1
- package/dist/lib/requests/double_array_response.js.map +1 -1
- package/dist/lib/requests/errors.d.ts +11 -11
- package/dist/lib/requests/errors.d.ts.map +1 -1
- package/dist/lib/requests/errors.js +11 -11
- package/dist/lib/requests/errors.js.map +1 -1
- package/dist/lib/requests/forget_devices_request.js +1 -1
- package/dist/lib/requests/forget_devices_request.js.map +1 -1
- package/dist/lib/requests/ge_1_gripper_activate_preset_request.d.ts +15 -0
- package/dist/lib/requests/ge_1_gripper_activate_preset_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_activate_preset_request.js +42 -0
- package/dist/lib/requests/ge_1_gripper_activate_preset_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_calibrate_request.d.ts +14 -0
- package/dist/lib/requests/ge_1_gripper_calibrate_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_calibrate_request.js +38 -0
- package/dist/lib/requests/ge_1_gripper_calibrate_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_empty_request.d.ts +13 -0
- package/dist/lib/requests/ge_1_gripper_empty_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_empty_request.js +34 -0
- package/dist/lib/requests/ge_1_gripper_empty_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_get_error_response.d.ts +14 -0
- package/dist/lib/requests/ge_1_gripper_get_error_response.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_get_error_response.js +35 -0
- package/dist/lib/requests/ge_1_gripper_get_error_response.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_get_state_response.d.ts +14 -0
- package/dist/lib/requests/ge_1_gripper_get_state_response.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_get_state_response.js +35 -0
- package/dist/lib/requests/ge_1_gripper_get_state_response.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_move_request.d.ts +15 -0
- package/dist/lib/requests/ge_1_gripper_move_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_move_request.js +42 -0
- package/dist/lib/requests/ge_1_gripper_move_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_open_connection_request.d.ts +15 -0
- package/dist/lib/requests/ge_1_gripper_open_connection_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_open_connection_request.js +42 -0
- package/dist/lib/requests/ge_1_gripper_open_connection_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_read_register_request.d.ts +14 -0
- package/dist/lib/requests/ge_1_gripper_read_register_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_read_register_request.js +38 -0
- package/dist/lib/requests/ge_1_gripper_read_register_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_auto_home_request.d.ts +15 -0
- package/dist/lib/requests/ge_1_gripper_set_auto_home_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_auto_home_request.js +42 -0
- package/dist/lib/requests/ge_1_gripper_set_auto_home_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_force_request.d.ts +14 -0
- package/dist/lib/requests/ge_1_gripper_set_force_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_force_request.js +38 -0
- package/dist/lib/requests/ge_1_gripper_set_force_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_home_direction_request.d.ts +16 -0
- package/dist/lib/requests/ge_1_gripper_set_home_direction_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_home_direction_request.js +43 -0
- package/dist/lib/requests/ge_1_gripper_set_home_direction_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_io_enabled_request.d.ts +15 -0
- package/dist/lib/requests/ge_1_gripper_set_io_enabled_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_io_enabled_request.js +42 -0
- package/dist/lib/requests/ge_1_gripper_set_io_enabled_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_io_input_filter_request.d.ts +15 -0
- package/dist/lib/requests/ge_1_gripper_set_io_input_filter_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_io_input_filter_request.js +42 -0
- package/dist/lib/requests/ge_1_gripper_set_io_input_filter_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_preset_request.d.ts +18 -0
- package/dist/lib/requests/ge_1_gripper_set_preset_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_preset_request.js +54 -0
- package/dist/lib/requests/ge_1_gripper_set_preset_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_speed_request.d.ts +14 -0
- package/dist/lib/requests/ge_1_gripper_set_speed_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_set_speed_request.js +38 -0
- package/dist/lib/requests/ge_1_gripper_set_speed_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_wait_until_idle_request.d.ts +14 -0
- package/dist/lib/requests/ge_1_gripper_wait_until_idle_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_wait_until_idle_request.js +38 -0
- package/dist/lib/requests/ge_1_gripper_wait_until_idle_request.js.map +1 -0
- package/dist/lib/requests/ge_1_gripper_write_register_request.d.ts +15 -0
- package/dist/lib/requests/ge_1_gripper_write_register_request.d.ts.map +1 -0
- package/dist/lib/requests/ge_1_gripper_write_register_request.js +42 -0
- package/dist/lib/requests/ge_1_gripper_write_register_request.js.map +1 -0
- package/dist/lib/requests/generic_command_response_collection.js +1 -1
- package/dist/lib/requests/generic_command_response_collection.js.map +1 -1
- package/dist/lib/requests/get_all_io_port_labels_response.js +1 -1
- package/dist/lib/requests/get_all_io_port_labels_response.js.map +1 -1
- package/dist/lib/requests/get_axis_setting_results.js +1 -1
- package/dist/lib/requests/get_axis_setting_results.js.map +1 -1
- package/dist/lib/requests/get_command_unit_conversion_response.js +1 -1
- package/dist/lib/requests/get_command_unit_conversion_response.js.map +1 -1
- package/dist/lib/requests/get_setting_results.js +1 -1
- package/dist/lib/requests/get_setting_results.js.map +1 -1
- package/dist/lib/requests/get_simple_tuning_param_definition_response.js +1 -1
- package/dist/lib/requests/get_simple_tuning_param_definition_response.js.map +1 -1
- package/dist/lib/requests/index.d.ts +24 -1
- package/dist/lib/requests/index.d.ts.map +1 -1
- package/dist/lib/requests/index.js +24 -1
- package/dist/lib/requests/index.js.map +1 -1
- package/dist/lib/requests/int_array_response.js +1 -1
- package/dist/lib/requests/int_array_response.js.map +1 -1
- package/dist/lib/requests/lockstep_enable_request.js +1 -1
- package/dist/lib/requests/lockstep_enable_request.js.map +1 -1
- package/dist/lib/requests/lockstep_get_axis_numbers_response.js +1 -1
- package/dist/lib/requests/lockstep_get_axis_numbers_response.js.map +1 -1
- package/dist/lib/requests/open_interface_request.js +1 -1
- package/dist/lib/requests/open_interface_request.js.map +1 -1
- package/dist/lib/requests/oscilloscope_data_get_samples_response.js +1 -1
- package/dist/lib/requests/oscilloscope_data_get_samples_response.js.map +1 -1
- package/dist/lib/requests/oscilloscope_read_response.js +1 -1
- package/dist/lib/requests/oscilloscope_read_response.js.map +1 -1
- package/dist/lib/requests/prepare_command_request.js +1 -1
- package/dist/lib/requests/prepare_command_request.js.map +1 -1
- package/dist/lib/requests/pvt_buffer_get_sequence_data_request.d.ts +1 -1
- package/dist/lib/requests/pvt_buffer_get_sequence_data_request.d.ts.map +1 -1
- package/dist/lib/requests/pvt_buffer_get_sequence_data_request.js +4 -4
- package/dist/lib/requests/pvt_buffer_get_sequence_data_request.js.map +1 -1
- package/dist/lib/requests/pvt_buffer_get_sequence_data_response.d.ts +14 -0
- package/dist/lib/requests/pvt_buffer_get_sequence_data_response.d.ts.map +1 -0
- package/dist/lib/requests/pvt_buffer_get_sequence_data_response.js +39 -0
- package/dist/lib/requests/pvt_buffer_get_sequence_data_response.js.map +1 -0
- package/dist/lib/requests/pvt_convert_time_request.d.ts +15 -0
- package/dist/lib/requests/pvt_convert_time_request.d.ts.map +1 -0
- package/dist/lib/requests/pvt_convert_time_request.js +45 -0
- package/dist/lib/requests/pvt_convert_time_request.js.map +1 -0
- package/dist/lib/requests/pvt_convert_time_response.d.ts +14 -0
- package/dist/lib/requests/pvt_convert_time_response.d.ts.map +1 -0
- package/dist/lib/requests/pvt_convert_time_response.js +39 -0
- package/dist/lib/requests/pvt_convert_time_response.js.map +1 -0
- package/dist/lib/requests/pvt_generate_positions_request.d.ts +2 -4
- package/dist/lib/requests/pvt_generate_positions_request.d.ts.map +1 -1
- package/dist/lib/requests/pvt_generate_positions_request.js +11 -15
- package/dist/lib/requests/pvt_generate_positions_request.js.map +1 -1
- package/dist/lib/requests/pvt_generate_sequence_response.d.ts +14 -0
- package/dist/lib/requests/pvt_generate_sequence_response.d.ts.map +1 -0
- package/dist/lib/requests/pvt_generate_sequence_response.js +39 -0
- package/dist/lib/requests/pvt_generate_sequence_response.js.map +1 -0
- package/dist/lib/requests/pvt_generate_velocities_and_times_request.d.ts +2 -2
- package/dist/lib/requests/pvt_generate_velocities_and_times_request.d.ts.map +1 -1
- package/dist/lib/requests/pvt_generate_velocities_and_times_request.js +14 -6
- package/dist/lib/requests/pvt_generate_velocities_and_times_request.js.map +1 -1
- package/dist/lib/requests/pvt_generate_velocities_request.d.ts +2 -6
- package/dist/lib/requests/pvt_generate_velocities_request.d.ts.map +1 -1
- package/dist/lib/requests/pvt_generate_velocities_request.js +11 -20
- package/dist/lib/requests/pvt_generate_velocities_request.js.map +1 -1
- package/dist/lib/requests/pvt_items_request.d.ts +20 -0
- package/dist/lib/requests/pvt_items_request.d.ts.map +1 -0
- package/dist/lib/requests/pvt_items_request.js +66 -0
- package/dist/lib/requests/pvt_items_request.js.map +1 -0
- package/dist/lib/requests/pvt_partial_convert_time_request.d.ts +15 -0
- package/dist/lib/requests/pvt_partial_convert_time_request.d.ts.map +1 -0
- package/dist/lib/requests/pvt_partial_convert_time_request.js +45 -0
- package/dist/lib/requests/pvt_partial_convert_time_request.js.map +1 -0
- package/dist/lib/requests/pvt_partial_convert_time_response.d.ts +14 -0
- package/dist/lib/requests/pvt_partial_convert_time_response.d.ts.map +1 -0
- package/dist/lib/requests/pvt_partial_convert_time_response.js +39 -0
- package/dist/lib/requests/pvt_partial_convert_time_response.js.map +1 -0
- package/dist/lib/requests/pvt_point_request.js +2 -2
- package/dist/lib/requests/pvt_point_request.js.map +1 -1
- package/dist/lib/requests/pvt_points_request.js +2 -2
- package/dist/lib/requests/pvt_points_request.js.map +1 -1
- package/dist/lib/requests/pvt_save_csv_request.d.ts +2 -2
- package/dist/lib/requests/pvt_save_csv_request.d.ts.map +1 -1
- package/dist/lib/requests/pvt_save_csv_request.js +14 -7
- package/dist/lib/requests/pvt_save_csv_request.js.map +1 -1
- package/dist/lib/requests/pvt_submit_sequence_data_request.d.ts +2 -2
- package/dist/lib/requests/pvt_submit_sequence_data_request.d.ts.map +1 -1
- package/dist/lib/requests/pvt_submit_sequence_data_request.js +14 -6
- package/dist/lib/requests/pvt_submit_sequence_data_request.js.map +1 -1
- package/dist/lib/requests/set_device_db_layered_sources_request.js +1 -1
- package/dist/lib/requests/set_device_db_layered_sources_request.js.map +1 -1
- package/dist/lib/requests/set_servo_tuning_request.js +1 -1
- package/dist/lib/requests/set_servo_tuning_request.js.map +1 -1
- package/dist/lib/requests/set_simple_tuning.js +1 -1
- package/dist/lib/requests/set_simple_tuning.js.map +1 -1
- package/dist/lib/requests/stream_arc_request.js +2 -2
- package/dist/lib/requests/stream_arc_request.js.map +1 -1
- package/dist/lib/requests/stream_buffer_erase_request.d.ts +1 -1
- package/dist/lib/requests/stream_buffer_erase_request.d.ts.map +1 -1
- package/dist/lib/requests/stream_buffer_erase_request.js +4 -4
- package/dist/lib/requests/stream_buffer_erase_request.js.map +1 -1
- package/dist/lib/requests/stream_buffer_get_content_request.d.ts +1 -1
- package/dist/lib/requests/stream_buffer_get_content_request.d.ts.map +1 -1
- package/dist/lib/requests/stream_buffer_get_content_request.js +4 -4
- package/dist/lib/requests/stream_buffer_get_content_request.js.map +1 -1
- package/dist/lib/requests/stream_buffer_get_content_response.js +1 -1
- package/dist/lib/requests/stream_buffer_get_content_response.js.map +1 -1
- package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.js +1 -1
- package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.js.map +1 -1
- package/dist/lib/requests/stream_circle_request.js +1 -1
- package/dist/lib/requests/stream_circle_request.js.map +1 -1
- package/dist/lib/requests/stream_generic_command_batch_request.js +1 -1
- package/dist/lib/requests/stream_generic_command_batch_request.js.map +1 -1
- package/dist/lib/requests/stream_get_axes_response.js +2 -2
- package/dist/lib/requests/stream_get_axes_response.js.map +1 -1
- package/dist/lib/requests/stream_line_request.js +2 -2
- package/dist/lib/requests/stream_line_request.js.map +1 -1
- package/dist/lib/requests/stream_set_all_analog_outputs_request.js +1 -1
- package/dist/lib/requests/stream_set_all_analog_outputs_request.js.map +1 -1
- package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.js +2 -2
- package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.js.map +1 -1
- package/dist/lib/requests/stream_set_all_digital_outputs_request.js +1 -1
- package/dist/lib/requests/stream_set_all_digital_outputs_request.js.map +1 -1
- package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.js +2 -2
- package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.js.map +1 -1
- package/dist/lib/requests/stream_setup_live_composite_request.js +2 -2
- package/dist/lib/requests/stream_setup_live_composite_request.js.map +1 -1
- package/dist/lib/requests/stream_setup_live_request.js +1 -1
- package/dist/lib/requests/stream_setup_live_request.js.map +1 -1
- package/dist/lib/requests/stream_setup_store_composite_request.js +2 -2
- package/dist/lib/requests/stream_setup_store_composite_request.js.map +1 -1
- package/dist/lib/requests/stream_setup_store_request.js +1 -1
- package/dist/lib/requests/stream_setup_store_request.js.map +1 -1
- package/dist/lib/requests/string_array_response.js +1 -1
- package/dist/lib/requests/string_array_response.js.map +1 -1
- package/dist/lib/requests/test_dto_with_variants.js +1 -1
- package/dist/lib/requests/test_dto_with_variants.js.map +1 -1
- package/dist/lib/requests/test_request_complex.js +1 -1
- package/dist/lib/requests/test_request_complex.js.map +1 -1
- package/dist/lib/requests/test_response_long.js +1 -1
- package/dist/lib/requests/test_response_long.js.map +1 -1
- package/dist/lib/requests/tools_list_serial_ports_response.js +1 -1
- package/dist/lib/requests/tools_list_serial_ports_response.js.map +1 -1
- package/dist/lib/requests/translator_create_from_device_request.js +1 -1
- package/dist/lib/requests/translator_create_from_device_request.js.map +1 -1
- package/dist/lib/requests/translator_flush_response.js +1 -1
- package/dist/lib/requests/translator_flush_response.js.map +1 -1
- package/dist/lib/requests/trigger_enabled_states.js +1 -1
- package/dist/lib/requests/trigger_enabled_states.js.map +1 -1
- package/dist/lib/requests/trigger_states.js +1 -1
- package/dist/lib/requests/trigger_states.js.map +1 -1
- package/dist/lib/requests/unit_convert_native_request.js +1 -1
- package/dist/lib/requests/unit_convert_native_request.js.map +1 -1
- package/dist/lib/requests/wait_to_clear_warnings_request.js +1 -1
- package/dist/lib/requests/wait_to_clear_warnings_request.js.map +1 -1
- package/dist/lib/requests/wdi_generic_float_request.js +1 -1
- package/dist/lib/requests/wdi_generic_float_request.js.map +1 -1
- package/dist/lib/requests/wdi_generic_request.js +1 -1
- package/dist/lib/requests/wdi_generic_request.js.map +1 -1
- package/dist/lib/tools.d.ts +1 -0
- package/dist/lib/tools.d.ts.map +1 -1
- package/dist/lib/tools.js +2 -0
- package/dist/lib/tools.js.map +1 -1
- package/dist/lib/unit_table.d.ts +15 -11
- package/dist/lib/unit_table.d.ts.map +1 -1
- package/dist/lib/unit_table.js +19 -14
- package/dist/lib/unit_table.js.map +1 -1
- package/dist/lib/variant_test_api.d.ts +4 -0
- package/dist/lib/variant_test_api.d.ts.map +1 -1
- package/dist/lib/variant_test_api.js +5 -0
- package/dist/lib/variant_test_api.js.map +1 -1
- package/package.json +37 -37
- package/dist/lib/ascii/optional_measurement_sequence.d.ts +0 -24
- package/dist/lib/ascii/optional_measurement_sequence.d.ts.map +0 -1
- package/dist/lib/ascii/optional_measurement_sequence.js +0 -38
- package/dist/lib/ascii/optional_measurement_sequence.js.map +0 -1
- package/dist/lib/ascii/pvt_sequence_data.d.ts +0 -28
- package/dist/lib/ascii/pvt_sequence_data.d.ts.map +0 -1
- package/dist/lib/ascii/pvt_sequence_data.js +0 -42
- package/dist/lib/ascii/pvt_sequence_data.js.map +0 -1
- package/dist/lib/ascii/storage.d.ts.map +0 -1
- package/dist/lib/ascii/storage.js.map +0 -1
- package/dist/lib/exceptions/setting_not_found_exception.d.ts +0 -8
- package/dist/lib/exceptions/setting_not_found_exception.d.ts.map +0 -1
- package/dist/lib/exceptions/setting_not_found_exception.js +0 -17
- package/dist/lib/exceptions/setting_not_found_exception.js.map +0 -1
- package/dist/lib/requests/pvt_csv_request.d.ts +0 -12
- package/dist/lib/requests/pvt_csv_request.d.ts.map +0 -1
- package/dist/lib/requests/pvt_csv_request.js +0 -28
- package/dist/lib/requests/pvt_csv_request.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pvt_sequence.js","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AACtC,sDAAwC;AAOxC,2DAAsD;AACtD,iDAA4C;AAC5C,qCAAiC;AAEjC;;;;;;GAMG;AACH,MAAa,WAAW;IACtB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO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,CAAC,iBAAiB,CAAC,OAAO;YACrC,IAAI,EAAE,IAAI;YACV,QAAQ;gBACN,OAAO,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACnD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,4BAA4B,EAC5B,OAAO,EACP,yBAAU,CAAC,UAAU,CAAC,CAAC;QACzB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,kBAAkB,CAC7B,YAA6B;QAE7B,MAAM,OAAO,GAA4D;YACvE,GAAG,QAAQ,CAAC,4BAA4B,CAAC,OAAO;YAChD,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,YAAY,EAAE,YAAY;YAC1B,QAAQ;gBACN,OAAO,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAxyBD,kCAwyBC","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 { MeasurementSequence } from './measurement_sequence';\nimport { OptionalMeasurementSequence } from './optional_measurement_sequence';\nimport { PvtSequenceData } from './pvt_sequence_data';\nimport { PvtCsvData } from './pvt_csv_data';\nimport { PvtIo } from './pvt_io';\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 points with absolute coordinates in the PVT sequence.\n * @param positions Per-axis sequences of positions.\n * @param velocities Per-axis sequences of velocities.\n * For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1.\n * @param times Segment times from one point to another.\n * For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1.\n */\n public async points(\n positions: MeasurementSequence[],\n velocities: MeasurementSequence[],\n times: MeasurementSequence\n ): Promise<void> {\n const request: requests.PvtPointsRequest & gateway.Message = {\n ...requests.PvtPointsRequest.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 times: times,\n toBinary() {\n return requests.PvtPointsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_points', 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 * Queues points with coordinates relative to the previous point in the PVT sequence.\n * @param positions Per-axis sequences of positions.\n * @param velocities Per-axis sequences of velocities.\n * For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1.\n * @param times Segment times from one point to another.\n * For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1.\n */\n public async pointsRelative(\n positions: MeasurementSequence[],\n velocities: MeasurementSequence[],\n times: MeasurementSequence\n ): Promise<void> {\n const request: requests.PvtPointsRequest & gateway.Message = {\n ...requests.PvtPointsRequest.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 times: times,\n toBinary() {\n return requests.PvtPointsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_points', request);\n }\n\n /**\n * Generates velocities for a sequence of positions and times, and (optionally) a partially defined sequence\n * of velocities. Note that if some velocities are defined, the solver will NOT modify them in any way.\n * If all velocities are defined, the solver will simply return the same velocities.\n * This function calculates velocities by enforcing that acceleration be continuous at each segment transition.\n *\n * Also note that if generating a path for multiple axes, the user must provide a position measurement sequence\n * per axis, And the values arrays for each sequence must be equal in length to each other and also to the\n * times sequence.\n *\n * Does not support native units.\n * @param positions Positions for the axes to move through, relative to their home positions.\n * Each MeasurementSequence represents a sequence of positions along a particular dimension.\n * For example, a 2D path sequence would contain two MeasurementSequence objects,\n * one representing positions along X and one for those along Y.\n * @param times The relative or absolute time of each position in the PVT sequence.\n * @param velocities Optional velocities corresponding to each point in the position sequences.\n * @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,\n * they are interpreted as absolute. Note that the values of the returned time\n * sequence are ALWAYS relative. This is because the PVT sequence API expects\n * points to have relative times.\n * @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.\n */\n public static async generateVelocities(\n positions: MeasurementSequence[],\n times: MeasurementSequence,\n velocities?: OptionalMeasurementSequence[],\n timesRelative: boolean = true\n ): Promise<PvtSequenceData> {\n const request: requests.PvtGenerateVelocitiesRequest & gateway.Message = {\n ...requests.PvtGenerateVelocitiesRequest.DEFAULT,\n positions: positions,\n times: times,\n velocities: velocities,\n timesRelative: timesRelative,\n toBinary() {\n return requests.PvtGenerateVelocitiesRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtSequenceData>(\n 'device/pvt_generate_velocities',\n request,\n PvtSequenceData.fromBinary);\n return response;\n }\n\n /**\n * Generates positions for a sequence of velocities and times. This function calculates\n * positions by enforcing that acceleration be continuous at each segment transition.\n *\n * Note that if generating a path for multiple axes, the user must provide a\n * velocity measurement sequence per axis, and the values arrays for each sequence\n * must be equal in length to each other and also to the times sequence.\n *\n * Does not support native units.\n * @param velocities The sequence of velocities for each axis.\n * Each MeasurementSequence represents a sequence of velocities along particular dimension.\n * @param times The relative or absolute time of each position in the PVT sequence.\n * @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,\n * they are interpreted as absolute. Note that the values of the returned time\n * sequence are ALWAYS relative. This is because the PVT sequence API expects\n * points to have relative times.\n * @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.\n */\n public static async generatePositions(\n velocities: MeasurementSequence[],\n times: MeasurementSequence,\n timesRelative: boolean = true\n ): Promise<PvtSequenceData> {\n const request: requests.PvtGeneratePositionsRequest & gateway.Message = {\n ...requests.PvtGeneratePositionsRequest.DEFAULT,\n velocities: velocities,\n times: times,\n timesRelative: timesRelative,\n toBinary() {\n return requests.PvtGeneratePositionsRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtSequenceData>(\n 'device/pvt_generate_positions',\n request,\n PvtSequenceData.fromBinary);\n return response;\n }\n\n /**\n * Generates sequences of velocities and times for a sequence of positions.\n * This function fits a geometric spline (not-a-knot cubic for sequences of >3 points,\n * natural cubic for 3, and a straight line for 2) over the position sequence\n * and then calculates the velocity and time information by traversing it using a\n * trapezoidal motion profile.\n *\n * This generation scheme attempts to keep speed and acceleration less than the\n * specified target values, but does not guarantee it. Generally speaking, a higher\n * resample number will bring the generated trajectory closer to respecting these\n * limits.\n *\n * Note that consecutive duplicate points will be automatically removed as they\n * have no geometric significance without additional time information. Also note that\n * for multi-dimensional paths this function expects axes to be linear and orthogonal,\n * however for paths of a single dimension rotary units are accepted.\n *\n * Does not support native units.\n * @param positions Positions for the axes to move through, relative to their home positions.\n * @param targetSpeed The target speed used to generate positions and times.\n * @param targetAcceleration The target acceleration used to generate positions and times.\n * @param resampleNumber The number of points to resample the sequence by.\n * Leave undefined to use the specified points.\n * @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.\n */\n public static async generateVelocitiesAndTimes(\n positions: MeasurementSequence[],\n targetSpeed: Measurement,\n targetAcceleration: Measurement,\n resampleNumber?: number\n ): Promise<PvtSequenceData> {\n if (targetSpeed.value <= 0 || targetAcceleration.value <= 0) {\n throw new TypeError('Target speed and acceleration values must be greater than zero.');\n }\n const request: requests.PvtGenerateVelocitiesAndTimesRequest & gateway.Message = {\n ...requests.PvtGenerateVelocitiesAndTimesRequest.DEFAULT,\n positions: positions,\n targetSpeed: targetSpeed,\n targetAcceleration: targetAcceleration,\n resampleNumber: resampleNumber,\n toBinary() {\n return requests.PvtGenerateVelocitiesAndTimesRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtSequenceData>(\n 'device/pvt_generate_velocities_and_times',\n request,\n PvtSequenceData.fromBinary);\n return response;\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 * Saves PvtSequenceData object as csv file.\n * Save format is compatible with Zaber Launcher PVT Editor App.\n *\n * Throws InvalidArgumentException if fields are undefined or inconsistent.\n * For example, position and velocity arrays must have the same dimensions.\n * Sequence lengths must be consistent for positions, velocities and times.\n * @param sequenceData The PVT sequence data to save.\n * @param path The path to save the file to.\n * @param dimensionNames Optional csv column names for each series.\n * If not provided, the default names will be used: Series 1, Series 2, etc..\n * Length of this array must be equal to number of dimensions in sequence data.\n */\n public static async saveSequenceData(\n sequenceData: PvtSequenceData,\n path: string,\n dimensionNames?: string[]\n ): Promise<void> {\n const request: requests.PvtSaveCsvRequest & gateway.Message = {\n ...requests.PvtSaveCsvRequest.DEFAULT,\n sequenceData: sequenceData,\n path: path,\n dimensionNames: dimensionNames,\n toBinary() {\n return requests.PvtSaveCsvRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_pvt_save_csv', request);\n }\n\n /**\n * Load PVT Sequence data from CSV file.\n * The CSV data can include a header (recommended).\n * There are two possible header formats:\n *\n * 1. A time column with named position and velocity columns.\n * For example, \"Time (ms),X Position (cm),X Velocity (cm/s),...\".\n * In this case, position, velocity and time columns are all optional.\n * Also, order does not matter, but position and velocity names must be consistent.\n * This is our recommended CSV format.\n *\n * 2. A time column with alternating position and velocity columns.\n * For example, \"Time (ms),Position (cm),Velocity (cm/s),...\".\n * In this case, only the time column is optional and order does matter.\n *\n * Units must be wrapped in parens or square braces: ie. (µm/s), [µm/s].\n * Additionally, native units are the default if no units are specified.\n * Time values default to milliseconds if no units are provided.\n * If no header is included, then column order is assumed to be \"T,P1,V1,P2,V2,...\".\n * In this case the number of columns must be odd.\n * @param path The path to the csv file to load.\n * @returns The PVT csv data loaded from the file.\n */\n public static async loadSequenceData(\n path: string\n ): Promise<PvtCsvData> {\n const request: requests.PvtLoadCsvRequest & gateway.Message = {\n ...requests.PvtLoadCsvRequest.DEFAULT,\n path: path,\n toBinary() {\n return requests.PvtLoadCsvRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtCsvData>(\n 'device/stream_pvt_load_csv',\n request,\n PvtCsvData.fromBinary);\n return response;\n }\n\n /**\n * Writes the contents of a PvtSequenceData object to the sequence.\n * @param sequenceData The PVT sequence data to submit.\n */\n public async submitSequenceData(\n sequenceData: PvtSequenceData\n ): Promise<void> {\n const request: requests.PvtSubmitSequenceDataRequest & gateway.Message = {\n ...requests.PvtSubmitSequenceDataRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n sequenceData: sequenceData,\n toBinary() {\n return requests.PvtSubmitSequenceDataRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_pvt_submit_data', request);\n }\n}\n\nnamespace PvtSequence {\n export interface WaitUntilIdleOptions {\n /**\n * Determines whether to throw error when fault is observed.\n */\n throwErrorOnFault?: boolean;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pvt_sequence.js","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAEtC,sDAAwC;AAIxC,iEAA2D;AAG3D,iDAA4C;AAC5C,qCAAiC;AAIjC;;;;;;GAMG;AACH,MAAa,WAAW;IACtB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAGD;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAGD,YAAY,MAAc,EAAE,KAAa;QACvC,IAAI,CAAC,OAAO,GAAG,MA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Q,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,wCAAwC,EACxC,OAAO,EACP,QAAQ,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QACrD,OAAO,QAAQ,CAAC,YAAY,CAAC;IAC/B,CAAC;CACF;AAhhCD,kCAghCC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { Measurement } from '../measurement';\nimport * as requests from '../requests';\nimport { Device } from './device';\nimport { MeasurementSequence } from './measurement_sequence';\nimport { PvtAxisDefinition } from './pvt_axis_definition';\nimport { PvtPartialCsvData } from './pvt_partial_csv_data';\nimport { PvtPartialSequenceItem } from './pvt_partial_sequence_item';\nimport { PvtBuffer } from './pvt_buffer';\nimport { PvtCsvData } from './pvt_csv_data';\nimport { PvtIo } from './pvt_io';\nimport { PvtMode } from './pvt_mode';\nimport { PvtSequenceItem } from './pvt_sequence_item';\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.bufferNumber,\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 The axis numbers of the 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.bufferNumber,\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.bufferNumber,\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 * If time value is zero, the device must already be idle at the specified position\n * and the specified velocity must be zero.\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 * @deprecated This method is being replaced by the new SubmitSequenceData method.\n *\n * Queues points with absolute coordinates in the PVT sequence.\n * Each point must have its time value measured relative to the previous point\n * or unexpected behavior will result.\n *\n * Note that if the first time value is zero, the device must already be idle at\n * the position of the first point and the velocity of that point must be zero.\n * All other time values must be greater than zero.\n * @param positions Per-axis sequences of positions.\n * @param velocities Per-axis sequences of velocities.\n * For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1.\n * @param times Segment times from one point to another.\n * For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1.\n */\n public async points(\n positions: MeasurementSequence[],\n velocities: MeasurementSequence[],\n times: MeasurementSequence\n ): Promise<void> {\n const request: requests.PvtPointsRequest & gateway.Message = {\n ...requests.PvtPointsRequest.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 times: times,\n toBinary() {\n return requests.PvtPointsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_points', 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 *\n * The time value must be greater than zero, and each point must have its time value\n * measured relative to the previous point or unexpected behavior will result.\n *\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 * @deprecated This method is being replaced by the new SubmitSequenceData method.\n *\n * Queues points with coordinates relative to the previous point in the PVT sequence.\n * All time values must be greater than zero and each point must have its time value\n * measured relative to the previous point or unexpected behavior will result.\n * @param positions Per-axis sequences of positions.\n * @param velocities Per-axis sequences of velocities.\n * For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1.\n * @param times Segment times from one point to another.\n * For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1.\n */\n public async pointsRelative(\n positions: MeasurementSequence[],\n velocities: MeasurementSequence[],\n times: MeasurementSequence\n ): Promise<void> {\n const request: requests.PvtPointsRequest & gateway.Message = {\n ...requests.PvtPointsRequest.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 times: times,\n toBinary() {\n return requests.PvtPointsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_points', request);\n }\n\n /**\n * Generates velocities for a sequence of positions and times, and (optionally) a partially defined sequence\n * of velocities. Note that if some velocities are defined, the solver will NOT modify them in any way.\n * If all velocities are defined, the solver will simply return the same velocities.\n * This function calculates velocities by enforcing that acceleration be continuous at each segment transition.\n * The function does not modify the input positions or times.\n *\n * Also note that if the first position is relative, all following points must be relative.\n * If the start position is absolute, then the sequence can include a mix of relative and absolute positions.\n * Additionally, all times must be relative to the previous point.\n * Please see the ConvertTimeAbsoluteToRelativePartial function for conversions.\n *\n * Does not support native units.\n * @param sequenceItems Partial PVT points defining the positions, optional velocities, and times for the sequence.\n * Each point should have positions defined for each axis. Velocities are optional.\n * Times must be defined for each point.\n * @returns Array of points and actions containing the generated PVT sequence. Note returned times are always relative.\n */\n public static async generateVelocities(\n sequenceItems: PvtPartialSequenceItem[]\n ): Promise<PvtSequenceItem[]> {\n const request: requests.PvtGenerateVelocitiesRequest & gateway.Message = {\n ...requests.PvtGenerateVelocitiesRequest.DEFAULT,\n sequenceItems: sequenceItems,\n toBinary() {\n return requests.PvtGenerateVelocitiesRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.PvtGenerateSequenceResponse>(\n 'device/pvt_generate_velocities',\n request,\n requests.PvtGenerateSequenceResponse.fromBinary);\n return response.sequenceData;\n }\n\n /**\n * Generates positions for a sequence of velocities and times. This function calculates\n * positions by enforcing that acceleration be continuous at each segment transition.\n *\n * This function does not modify the input velocities or times, and outputs absolute\n * positions. If your initial point has a time of zero, it will be considered a starting\n * position when submitted to the device, and you must already have moved the device\n * to that position. Additionally, all times must be relative to the previous point.\n * Please see the ConvertTimeAbsoluteToRelativePartial function for conversions.\n *\n * Does not support native units.\n * @param sequenceItems Partial PVT points defining the velocities and times for the sequence.\n * Each point should have velocities defined for each axis.\n * Times must be defined for each point.\n * @returns Array of points and actions containing the generated PVT sequence. Note returned times are always relative.\n */\n public static async generatePositions(\n sequenceItems: PvtPartialSequenceItem[]\n ): Promise<PvtSequenceItem[]> {\n const request: requests.PvtGeneratePositionsRequest & gateway.Message = {\n ...requests.PvtGeneratePositionsRequest.DEFAULT,\n sequenceItems: sequenceItems,\n toBinary() {\n return requests.PvtGeneratePositionsRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.PvtGenerateSequenceResponse>(\n 'device/pvt_generate_positions',\n request,\n requests.PvtGenerateSequenceResponse.fromBinary);\n return response.sequenceData;\n }\n\n /**\n * Generates sequences of velocities and times for a sequence of positions.\n * This function fits a geometric spline (not-a-knot cubic for sequences of >3 points,\n * natural cubic for 3, and a straight line for 2) over the position sequence\n * and then calculates the velocity and time information by traversing it using a\n * trapezoidal motion profile.\n *\n * This generation scheme attempts to keep speed and acceleration less than the\n * specified target values, but does not guarantee it. Generally speaking, a higher\n * resample number will bring the generated trajectory closer to respecting these\n * limits.\n *\n * Note that consecutive duplicate points will be automatically removed as they\n * have no geometric significance without additional time information. Also note that\n * for multi-dimensional paths this function expects axes to be linear and orthogonal,\n * however for paths of a single dimension rotary units are accepted.\n * Additionally, if the first positions of the input sequence is relative,\n * all following positions must also be relative. If the first position is absolute,\n * the sequence may contain a mix of relative and absolute positions.\n * Resampling a sequence which contains relative positions is not allowed.\n *\n * This function outputs points with absolute positions and relative times, with the\n * first time equal to zero, meaning it will be treated as a start position when\n * executing on a device. You must move the device to that position before submitting\n * the sequence, or change the first point's time to a value greater than zero.\n *\n * Does not support native units.\n * @param sequenceItems Partial PVT points defining the positions for the sequence.\n * Each point should have positions defined for each axis.\n * @param targetSpeed The target speed used to generate positions and times.\n * @param targetAcceleration The target acceleration used to generate positions and times.\n * @param resampleNumber The number of points to resample the sequence by.\n * Leave undefined to use the specified points.\n * @returns Array of points and actions containing the generated PVT sequence. Note returned times are always relative.\n */\n public static async generateVelocitiesAndTimes(\n sequenceItems: PvtPartialSequenceItem[],\n targetSpeed: Measurement,\n targetAcceleration: Measurement,\n resampleNumber?: number\n ): Promise<PvtSequenceItem[]> {\n if (targetSpeed.value <= 0 || targetAcceleration.value <= 0) {\n throw new TypeError('Target speed and acceleration values must be greater than zero.');\n }\n const request: requests.PvtGenerateVelocitiesAndTimesRequest & gateway.Message = {\n ...requests.PvtGenerateVelocitiesAndTimesRequest.DEFAULT,\n sequenceItems: sequenceItems,\n targetSpeed: targetSpeed,\n targetAcceleration: targetAcceleration,\n resampleNumber: resampleNumber,\n toBinary() {\n return requests.PvtGenerateVelocitiesAndTimesRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.PvtGenerateSequenceResponse>(\n 'device/pvt_generate_velocities_and_times',\n request,\n requests.PvtGenerateSequenceResponse.fromBinary);\n return response.sequenceData;\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 * Saves PvtSequenceItem array as a csv file.\n * Save format is compatible with Zaber Launcher PVT Editor App.\n *\n * Normally a sequence in memory should have relative time values on the points.\n * If you want to store absolute times instead, you can use the\n * ConvertTimeRelativeToAbsolute function to convert before saving.\n *\n * Throws InvalidArgumentException if fields are undefined or inconsistent.\n * For example, position and velocity arrays must have the same dimensions.\n * Sequence lengths must be consistent for positions, velocities and times.\n * @param sequenceData The PVT sequence data to save.\n * @param path The path to save the file to.\n * @param dimensionNames Optional csv column names for each series.\n * If not provided, the default names will be used: Series 1, Series 2, etc..\n * Length of this array must be equal to number of dimensions in sequence data.\n */\n public static async saveSequenceData(\n sequenceData: PvtSequenceItem[],\n path: string,\n dimensionNames?: string[]\n ): Promise<void> {\n const request: requests.PvtSaveCsvRequest & gateway.Message = {\n ...requests.PvtSaveCsvRequest.DEFAULT,\n sequenceData: sequenceData,\n path: path,\n dimensionNames: dimensionNames,\n toBinary() {\n return requests.PvtSaveCsvRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_pvt_save_csv', request);\n }\n\n /**\n * Load PVT Sequence data from CSV file.\n * This function expects complete data in the CSV files (a time column and\n * both position and velocity columns for each series).\n * If your CSV file has partial data, use LoadPartialSequenceData instead.\n *\n * The CSV data can include a header (recommended).\n * There are two possible header formats:\n *\n * 1. A time column with named position and velocity columns.\n * For example, \"Time (ms),X Position (cm),X Velocity (cm/s),...\".\n * In this case, position, velocity and time columns are all optional.\n * Also, order does not matter, but position and velocity names must be consistent.\n * This is our recommended CSV format.\n *\n * 2. A time column with alternating position and velocity columns.\n * For example, \"Time (ms),Position (cm),Velocity (cm/s),...\".\n * In this case, only the time column is optional and order does matter.\n *\n * Units must be wrapped in parens or square braces: ie. (µm/s), [µm/s].\n * Additionally, native units are the default if no units are specified.\n * Time values default to milliseconds if no units are provided.\n * If no header is included, then column order is assumed to be \"T,P1,V1,P2,V2,...\".\n * In this case the number of columns must be odd.\n *\n * Users can add a column named \"Relative\" with true/false values to\n * indicate whether each point's position is relative or absolute.\n * If this column is not included, all points will be assumed to be absolute.\n *\n * If the first point has time = zero, it is considered the start position\n * and treated specially. It must have an absolute position, and the device\n * must already be idle at that position when the sequence is submitted.\n * The velocity of the start position is ignored, and should normally be zero.\n * Sequences with nonzero time for the first point do not have these constraints.\n *\n * Buffer calls and I/O actions can be added into the CSV file by\n * adding a column titled \"Actions\", containing the ASCII protocol command(s)\n * shortened by everything up to the PVT stream number, for example\n * \"call 2\" or \"io set do 1 1\". If you want to insert multiple actions\n * after a point, put them in the same cell separated by a semicolon.\n * See the ASCII Protocol Manual\n * [PVT command reference](https://www.zaber.com/protocol-manual?protocol=ASCII#topic_command_pvt)\n * section for the list of available commands. Unit symbols are not supported;\n * analog output voltages are always in volts and schedule delay times are\n * always in milliseconds.\n *\n * Note that the Relative and Actions columns are not automatically\n * detected, so if you include them you must include a header row.\n *\n * Time values should always be relative when sent to a device or to the\n * various Generate... functions on this class. If you want to store\n * absolute times in a CSV file, you can use the ConvertTimeRelativeToAbsolute\n * function to convert after loading the file.\n * @param path The path to the csv file to load.\n * @returns The PVT csv data loaded from the file.\n */\n public static async loadSequenceData(\n path: string\n ): Promise<PvtCsvData> {\n const request: requests.PvtLoadCsvRequest & gateway.Message = {\n ...requests.PvtLoadCsvRequest.DEFAULT,\n path: path,\n toBinary() {\n return requests.PvtLoadCsvRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtCsvData>(\n 'device/stream_pvt_load_csv',\n request,\n PvtCsvData.fromBinary);\n return response;\n }\n\n /**\n * Load PVT Sequence data from CSV file, allowing for some combinations of incomplete data.\n * Output from this function cannot be enqueued on a device until the missing data has\n * been filled in using the GenerateVelocities, GeneratePositions or\n * GenerateVelocitiesAndTimes functions.\n *\n * The CSV data can include a header (recommended).\n * There are two possible header formats:\n *\n * 1. A time column with named position and velocity columns.\n * For example, \"Time (ms),X Position (cm),X Velocity (cm/s),...\".\n * In this case, position, velocity and time columns are all optional.\n * Also, order does not matter, but position and velocity names must be consistent.\n * This is our recommended CSV format.\n *\n * 2. A time column with alternating position and velocity columns.\n * For example, \"Time (ms),Position (cm),Velocity (cm/s),...\".\n * In this case, only the time column is optional and order does matter.\n *\n * Units must be wrapped in parens or square braces: ie. (µm/s), [µm/s].\n * Additionally, native units are the default if no units are specified.\n * Time values default to milliseconds if no units are provided.\n * If no header is included, then column order is assumed to be \"T,P1,V1,P2,V2,...\".\n * In this case the number of columns must be odd.\n *\n * Users can add a column named \"Relative\" with true/false values to\n * indicate whether each point's position is relative or absolute.\n * If this column is not included, all points will be assumed to be absolute.\n *\n * If the first point has time = zero, it is considered the start position\n * and treated specially. It must have an absolute position, and the device\n * must already be idle at that position when the sequence is submitted.\n * The velocity of the start position is ignored, and should normally be zero.\n * Sequences with nonzero time for the first point do not have these constraints.\n *\n * Buffer calls and I/O actions can be added into the CSV file by\n * adding a column titled \"Actions\", containing the ASCII protocol command(s)\n * shortened by everything up to the PVT stream number, for example\n * \"call 2\" or \"io set do 1 1\". If you want to insert multiple actions\n * after a point, put them in the same cell separated by a semicolon.\n * See the ASCII Protocol Manual\n * [PVT command reference](https://www.zaber.com/protocol-manual?protocol=ASCII#topic_command_pvt)\n * section for the list of available commands. Unit symbols are not supported;\n * analog output voltages are always in volts and schedule delay times are\n * always in milliseconds.\n *\n * Note that the Relative and Actions columns are not automatically\n * detected, so if you include them you must include a header row.\n *\n * Time values should always be relative when sent to a device or to the\n * various Generate... functions on this class. If you want to store\n * absolute times in a CSV file, you can use the ConvertTimeRelativeToAbsolute\n * function to convert after loading the file.\n * @param path The path to the csv file to load.\n * @returns The PVT csv data loaded from the file.\n */\n public static async loadPartialSequenceData(\n path: string\n ): Promise<PvtPartialCsvData> {\n const request: requests.PvtLoadCsvRequest & gateway.Message = {\n ...requests.PvtLoadCsvRequest.DEFAULT,\n path: path,\n toBinary() {\n return requests.PvtLoadCsvRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtPartialCsvData>(\n 'device/stream_pvt_load_partial_csv',\n request,\n PvtPartialCsvData.fromBinary);\n return response;\n }\n\n /**\n * Writes the contents of a PvtSequenceItem array to the sequence.\n * Each point must have its time value measured relative to the previous point\n * or unexpected behavior will result. If your point times are absolute (measured\n * from the start of the sequence), use the ConvertTimeAbsoluteToRelative\n * function to convert them before submitting.\n *\n * If the first point in the sequence has a time value of zero, it is\n * considered the starting position. It must have an absolute position,\n * zero velocity, and the device must already be idle at the specified position.\n * @param sequenceData The PVT sequence data to submit.\n */\n public async submitSequenceData(\n sequenceData: PvtSequenceItem[]\n ): Promise<void> {\n const request: requests.PvtSubmitSequenceDataRequest & gateway.Message = {\n ...requests.PvtSubmitSequenceDataRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n sequenceData: sequenceData,\n toBinary() {\n return requests.PvtSubmitSequenceDataRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_pvt_submit_sequence_data', request);\n }\n\n /**\n * Converts the time values in a PvtSequenceItem array from absolute to relative.\n * Points passed to the Generate functions or sent to devices must have relative time values.\n * @param sequenceData The sequence data for which to convert times from absolute to relative.\n * Point times must all be in the same units.\n * @returns The sequence data with times converted from absolute to relative.\n */\n public static async convertTimeAbsoluteToRelative(\n sequenceData: PvtSequenceItem[]\n ): Promise<PvtSequenceItem[]> {\n const request: requests.PvtConvertTimeRequest & gateway.Message = {\n ...requests.PvtConvertTimeRequest.DEFAULT,\n fromAbsolute: true,\n sequenceData: sequenceData,\n toBinary() {\n return requests.PvtConvertTimeRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.PvtConvertTimeResponse>(\n 'device/stream_pvt_convert_time',\n request,\n requests.PvtConvertTimeResponse.fromBinary);\n return response.sequenceData;\n }\n\n /**\n * Converts the time values in a PvtSequenceItem array from relative to absolute.\n * @param sequenceData The sequence data for which to convert times from relative to absolute.\n * Point times must all be in the same units.\n * @returns The sequence data with times converted from relative to absolute.\n */\n public static async convertTimeRelativeToAbsolute(\n sequenceData: PvtSequenceItem[]\n ): Promise<PvtSequenceItem[]> {\n const request: requests.PvtConvertTimeRequest & gateway.Message = {\n ...requests.PvtConvertTimeRequest.DEFAULT,\n fromAbsolute: false,\n sequenceData: sequenceData,\n toBinary() {\n return requests.PvtConvertTimeRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.PvtConvertTimeResponse>(\n 'device/stream_pvt_convert_time',\n request,\n requests.PvtConvertTimeResponse.fromBinary);\n return response.sequenceData;\n }\n\n /**\n * Converts the time values in a PvtPartialSequenceItem array from absolute to relative.\n * Points passed to the Generate functions or sent to devices must have relative time values.\n * @param sequenceData The sequence data for which to convert times from absolute to relative.\n * Point times must all be in the same units.\n * @returns The sequence data with times converted from absolute to relative.\n */\n public static async convertTimeAbsoluteToRelativePartial(\n sequenceData: PvtPartialSequenceItem[]\n ): Promise<PvtPartialSequenceItem[]> {\n const request: requests.PvtPartialConvertTimeRequest & gateway.Message = {\n ...requests.PvtPartialConvertTimeRequest.DEFAULT,\n fromAbsolute: true,\n sequenceData: sequenceData,\n toBinary() {\n return requests.PvtPartialConvertTimeRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.PvtPartialConvertTimeResponse>(\n 'device/stream_pvt_convert_time_partial',\n request,\n requests.PvtPartialConvertTimeResponse.fromBinary);\n return response.sequenceData;\n }\n\n /**\n * Converts the time values in a PvtPartialSequenceItem array from relative to absolute.\n * @param sequenceData The sequence data for which to convert times from relative to absolute.\n * Point times must all be in the same units.\n * @returns The sequence data with times converted from relative to absolute.\n */\n public static async convertTimeRelativeToAbsolutePartial(\n sequenceData: PvtPartialSequenceItem[]\n ): Promise<PvtPartialSequenceItem[]> {\n const request: requests.PvtPartialConvertTimeRequest & gateway.Message = {\n ...requests.PvtPartialConvertTimeRequest.DEFAULT,\n fromAbsolute: false,\n sequenceData: sequenceData,\n toBinary() {\n return requests.PvtPartialConvertTimeRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.PvtPartialConvertTimeResponse>(\n 'device/stream_pvt_convert_time_partial',\n request,\n requests.PvtPartialConvertTimeResponse.fromBinary);\n return response.sequenceData;\n }\n}\n\nnamespace PvtSequence {\n export interface WaitUntilIdleOptions {\n /**\n * Determines whether to throw error when fault is observed.\n */\n throwErrorOnFault?: boolean;\n }\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BSON } from 'bson';
|
|
2
|
+
import { PvtPoint } from '../ascii/pvt_point';
|
|
3
|
+
import { PvtCallAction } from '../ascii/pvt_call_action';
|
|
4
|
+
import { PvtSetDigitalOutputAction } from '../ascii/pvt_set_digital_output_action';
|
|
5
|
+
import { PvtSetAllDigitalOutputsAction } from '../ascii/pvt_set_all_digital_outputs_action';
|
|
6
|
+
import { PvtSetAnalogOutputAction } from '../ascii/pvt_set_analog_output_action';
|
|
7
|
+
import { PvtSetAllAnalogOutputsAction } from '../ascii/pvt_set_all_analog_outputs_action';
|
|
8
|
+
import { PvtCancelOutputScheduleAction } from '../ascii/pvt_cancel_output_schedule_action';
|
|
9
|
+
import { PvtCancelAllOutputsScheduleAction } from '../ascii/pvt_cancel_all_outputs_schedule_action';
|
|
10
|
+
/**
|
|
11
|
+
* Union of all data types that can appear in a PVT sequence.
|
|
12
|
+
*/
|
|
13
|
+
export type PvtSequenceItem = PvtPoint | PvtCallAction | PvtSetDigitalOutputAction | PvtSetAllDigitalOutputsAction | PvtSetAnalogOutputAction | PvtSetAllAnalogOutputsAction | PvtCancelOutputScheduleAction | PvtCancelAllOutputsScheduleAction;
|
|
14
|
+
/**
|
|
15
|
+
* Constants for the possible return values of PvtSequenceItem.typeName().
|
|
16
|
+
*/
|
|
17
|
+
export type PvtSequenceItemTypeTags = 'PvtPoint' | 'PvtCallAction' | 'PvtSetDigitalOutputAction' | 'PvtSetAllDigitalOutputsAction' | 'PvtSetAnalogOutputAction' | 'PvtSetAllAnalogOutputsAction' | 'PvtCancelOutputScheduleAction' | 'PvtCancelAllOutputsScheduleAction';
|
|
18
|
+
export declare const PvtSequenceItem: {
|
|
19
|
+
sanitize: (value: PvtSequenceItem) => PvtSequenceItem;
|
|
20
|
+
convert: (value: BSON.Document) => PvtSequenceItem;
|
|
21
|
+
convertBack: (value: PvtSequenceItem) => BSON.Document;
|
|
22
|
+
/**
|
|
23
|
+
* Attempts to determine which member type is present in a variable.
|
|
24
|
+
*/
|
|
25
|
+
typeName: (value: PvtSequenceItem) => PvtSequenceItemTypeTags;
|
|
26
|
+
isA: (value: any) => value is PvtSequenceItem;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=pvt_sequence_item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pvt_sequence_item.d.ts","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence_item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,iCAAiC,EAAE,MAAM,iDAAiD,CAAC;AAEpG;;GAEG;AACH,MAAM,MAAM,eAAe,GACzB,QAAQ,GAAG,aAAa,GAAG,yBAAyB,GAAG,6BAA6B,GACpF,wBAAwB,GAAG,4BAA4B,GAAG,6BAA6B,GACvF,iCAAiC,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,eAAe,GAAG,2BAA2B,GAAG,+BAA+B,GAAG,0BAA0B,GAAG,8BAA8B,GAAG,+BAA+B,GAAG,mCAAmC,CAAC;AAEzQ,eAAO,MAAM,eAAe;sBACR,eAAe,KAAG,eAAe;qBA0ClC,KAAK,QAAQ,KAAG,eAAe;yBA+B3B,eAAe,KAAG,KAAK,QAAQ;IAepD;;OAEG;sBACe,eAAe,KAAG,uBAAuB;iBAwB9C,GAAG;CAYjB,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PvtSequenceItem = void 0;
|
|
4
|
+
const pvt_point_1 = require("../ascii/pvt_point");
|
|
5
|
+
const pvt_call_action_1 = require("../ascii/pvt_call_action");
|
|
6
|
+
const pvt_set_digital_output_action_1 = require("../ascii/pvt_set_digital_output_action");
|
|
7
|
+
const pvt_set_all_digital_outputs_action_1 = require("../ascii/pvt_set_all_digital_outputs_action");
|
|
8
|
+
const pvt_set_analog_output_action_1 = require("../ascii/pvt_set_analog_output_action");
|
|
9
|
+
const pvt_set_all_analog_outputs_action_1 = require("../ascii/pvt_set_all_analog_outputs_action");
|
|
10
|
+
const pvt_cancel_output_schedule_action_1 = require("../ascii/pvt_cancel_output_schedule_action");
|
|
11
|
+
const pvt_cancel_all_outputs_schedule_action_1 = require("../ascii/pvt_cancel_all_outputs_schedule_action");
|
|
12
|
+
exports.PvtSequenceItem = {
|
|
13
|
+
sanitize: (value) => {
|
|
14
|
+
const typeName = exports.PvtSequenceItem.typeName(value);
|
|
15
|
+
switch (typeName) {
|
|
16
|
+
case 'PvtPoint':
|
|
17
|
+
value = pvt_point_1.PvtPoint.sanitize(value);
|
|
18
|
+
break;
|
|
19
|
+
case 'PvtCallAction':
|
|
20
|
+
value = pvt_call_action_1.PvtCallAction.sanitize(value);
|
|
21
|
+
break;
|
|
22
|
+
case 'PvtSetDigitalOutputAction':
|
|
23
|
+
value = pvt_set_digital_output_action_1.PvtSetDigitalOutputAction.sanitize(value);
|
|
24
|
+
break;
|
|
25
|
+
case 'PvtSetAllDigitalOutputsAction':
|
|
26
|
+
value = pvt_set_all_digital_outputs_action_1.PvtSetAllDigitalOutputsAction.sanitize(value);
|
|
27
|
+
break;
|
|
28
|
+
case 'PvtSetAnalogOutputAction':
|
|
29
|
+
value = pvt_set_analog_output_action_1.PvtSetAnalogOutputAction.sanitize(value);
|
|
30
|
+
break;
|
|
31
|
+
case 'PvtSetAllAnalogOutputsAction':
|
|
32
|
+
value = pvt_set_all_analog_outputs_action_1.PvtSetAllAnalogOutputsAction.sanitize(value);
|
|
33
|
+
break;
|
|
34
|
+
case 'PvtCancelOutputScheduleAction':
|
|
35
|
+
value = pvt_cancel_output_schedule_action_1.PvtCancelOutputScheduleAction.sanitize(value);
|
|
36
|
+
break;
|
|
37
|
+
case 'PvtCancelAllOutputsScheduleAction':
|
|
38
|
+
value = pvt_cancel_all_outputs_schedule_action_1.PvtCancelAllOutputsScheduleAction.sanitize(value);
|
|
39
|
+
break;
|
|
40
|
+
default:
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
return value;
|
|
44
|
+
},
|
|
45
|
+
convert: (value) => {
|
|
46
|
+
switch (value.variantValueType) {
|
|
47
|
+
case 'PvtPoint':
|
|
48
|
+
return value.pvtPointValue;
|
|
49
|
+
case 'PvtCallAction':
|
|
50
|
+
return value.pvtCallActionValue;
|
|
51
|
+
case 'PvtSetDigitalOutputAction':
|
|
52
|
+
return value.pvtSetDigitalOutputActionValue;
|
|
53
|
+
case 'PvtSetAllDigitalOutputsAction':
|
|
54
|
+
return value.pvtSetAllDigitalOutputsActionValue;
|
|
55
|
+
case 'PvtSetAnalogOutputAction':
|
|
56
|
+
return value.pvtSetAnalogOutputActionValue;
|
|
57
|
+
case 'PvtSetAllAnalogOutputsAction':
|
|
58
|
+
return value.pvtSetAllAnalogOutputsActionValue;
|
|
59
|
+
case 'PvtCancelOutputScheduleAction':
|
|
60
|
+
return value.pvtCancelOutputScheduleActionValue;
|
|
61
|
+
case 'PvtCancelAllOutputsScheduleAction':
|
|
62
|
+
return value.pvtCancelAllOutputsScheduleActionValue;
|
|
63
|
+
default:
|
|
64
|
+
throw new TypeError(`Variant type tag '${value.variantValueType}' is not valid for variant type PvtSequenceItem.`);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
convertBack: (value) => {
|
|
68
|
+
const typeName = exports.PvtSequenceItem.typeName(value);
|
|
69
|
+
return {
|
|
70
|
+
variantValueType: typeName,
|
|
71
|
+
pvtPointValue: typeName === 'PvtPoint' ? value : undefined,
|
|
72
|
+
pvtCallActionValue: typeName === 'PvtCallAction' ? value : undefined,
|
|
73
|
+
pvtSetDigitalOutputActionValue: typeName === 'PvtSetDigitalOutputAction' ? value : undefined,
|
|
74
|
+
pvtSetAllDigitalOutputsActionValue: typeName === 'PvtSetAllDigitalOutputsAction' ? value : undefined,
|
|
75
|
+
pvtSetAnalogOutputActionValue: typeName === 'PvtSetAnalogOutputAction' ? value : undefined,
|
|
76
|
+
pvtSetAllAnalogOutputsActionValue: typeName === 'PvtSetAllAnalogOutputsAction' ? value : undefined,
|
|
77
|
+
pvtCancelOutputScheduleActionValue: typeName === 'PvtCancelOutputScheduleAction' ? value : undefined,
|
|
78
|
+
pvtCancelAllOutputsScheduleActionValue: typeName === 'PvtCancelAllOutputsScheduleAction' ? value : undefined,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* Attempts to determine which member type is present in a variable.
|
|
83
|
+
*/
|
|
84
|
+
typeName: (value) => {
|
|
85
|
+
if (pvt_point_1.PvtPoint.isA(value)) {
|
|
86
|
+
return 'PvtPoint';
|
|
87
|
+
}
|
|
88
|
+
else if (pvt_call_action_1.PvtCallAction.isA(value)) {
|
|
89
|
+
return 'PvtCallAction';
|
|
90
|
+
}
|
|
91
|
+
else if (pvt_set_digital_output_action_1.PvtSetDigitalOutputAction.isA(value)) {
|
|
92
|
+
return 'PvtSetDigitalOutputAction';
|
|
93
|
+
}
|
|
94
|
+
else if (pvt_set_all_digital_outputs_action_1.PvtSetAllDigitalOutputsAction.isA(value)) {
|
|
95
|
+
return 'PvtSetAllDigitalOutputsAction';
|
|
96
|
+
}
|
|
97
|
+
else if (pvt_set_analog_output_action_1.PvtSetAnalogOutputAction.isA(value)) {
|
|
98
|
+
return 'PvtSetAnalogOutputAction';
|
|
99
|
+
}
|
|
100
|
+
else if (pvt_set_all_analog_outputs_action_1.PvtSetAllAnalogOutputsAction.isA(value)) {
|
|
101
|
+
return 'PvtSetAllAnalogOutputsAction';
|
|
102
|
+
}
|
|
103
|
+
else if (pvt_cancel_output_schedule_action_1.PvtCancelOutputScheduleAction.isA(value)) {
|
|
104
|
+
return 'PvtCancelOutputScheduleAction';
|
|
105
|
+
}
|
|
106
|
+
else if (pvt_cancel_all_outputs_schedule_action_1.PvtCancelAllOutputsScheduleAction.isA(value)) {
|
|
107
|
+
return 'PvtCancelAllOutputsScheduleAction';
|
|
108
|
+
}
|
|
109
|
+
else if (value == null) {
|
|
110
|
+
throw new RangeError('Null or undefined values are not valid values for type PvtSequenceItem');
|
|
111
|
+
}
|
|
112
|
+
throw new TypeError(`Unrecognized type for PvtSequenceItem: ${typeof value} (JSON.stringify(value, NULL, 2))`);
|
|
113
|
+
},
|
|
114
|
+
isA: (value) => {
|
|
115
|
+
try {
|
|
116
|
+
exports.PvtSequenceItem.typeName(value); // Throws if the type is not recognized.
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
catch (err) {
|
|
120
|
+
if (err instanceof TypeError) {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
throw err;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=pvt_sequence_item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pvt_sequence_item.js","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence_item.ts"],"names":[],"mappings":";;;AAEA,kDAA8C;AAC9C,8DAAyD;AACzD,0FAAmF;AACnF,oGAA4F;AAC5F,wFAAiF;AACjF,kGAA0F;AAC1F,kGAA2F;AAC3F,4GAAoG;AAevF,QAAA,eAAe,GAAG;IAC7B,QA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AAe,CAAC,QAAQ,CAAC,KAAwB,CAAC,CAAC,CAAC,wCAAwC;YAC5F,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,SAAS,EAAE,CAAC;gBAC7B,OAAO,KAAK,CAAC;YACf,CAAC;YAED,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { PvtPoint } from '../ascii/pvt_point';\nimport { PvtCallAction } from '../ascii/pvt_call_action';\nimport { PvtSetDigitalOutputAction } from '../ascii/pvt_set_digital_output_action';\nimport { PvtSetAllDigitalOutputsAction } from '../ascii/pvt_set_all_digital_outputs_action';\nimport { PvtSetAnalogOutputAction } from '../ascii/pvt_set_analog_output_action';\nimport { PvtSetAllAnalogOutputsAction } from '../ascii/pvt_set_all_analog_outputs_action';\nimport { PvtCancelOutputScheduleAction } from '../ascii/pvt_cancel_output_schedule_action';\nimport { PvtCancelAllOutputsScheduleAction } from '../ascii/pvt_cancel_all_outputs_schedule_action';\n\n/**\n * Union of all data types that can appear in a PVT sequence.\n */\nexport type PvtSequenceItem =\n PvtPoint | PvtCallAction | PvtSetDigitalOutputAction | PvtSetAllDigitalOutputsAction |\n PvtSetAnalogOutputAction | PvtSetAllAnalogOutputsAction | PvtCancelOutputScheduleAction |\n PvtCancelAllOutputsScheduleAction;\n\n/**\n * Constants for the possible return values of PvtSequenceItem.typeName().\n */\nexport type PvtSequenceItemTypeTags = 'PvtPoint' | 'PvtCallAction' | 'PvtSetDigitalOutputAction' | 'PvtSetAllDigitalOutputsAction' | 'PvtSetAnalogOutputAction' | 'PvtSetAllAnalogOutputsAction' | 'PvtCancelOutputScheduleAction' | 'PvtCancelAllOutputsScheduleAction';\n\nexport const PvtSequenceItem = {\n sanitize: (value: PvtSequenceItem): PvtSequenceItem => {\n const typeName = PvtSequenceItem.typeName(value);\n switch (typeName) {\n case 'PvtPoint':\n value = PvtPoint.sanitize(value as PvtPoint);\n break;\n\n case 'PvtCallAction':\n value = PvtCallAction.sanitize(value as PvtCallAction);\n break;\n\n case 'PvtSetDigitalOutputAction':\n value = PvtSetDigitalOutputAction.sanitize(value as PvtSetDigitalOutputAction);\n break;\n\n case 'PvtSetAllDigitalOutputsAction':\n value = PvtSetAllDigitalOutputsAction.sanitize(value as PvtSetAllDigitalOutputsAction);\n break;\n\n case 'PvtSetAnalogOutputAction':\n value = PvtSetAnalogOutputAction.sanitize(value as PvtSetAnalogOutputAction);\n break;\n\n case 'PvtSetAllAnalogOutputsAction':\n value = PvtSetAllAnalogOutputsAction.sanitize(value as PvtSetAllAnalogOutputsAction);\n break;\n\n case 'PvtCancelOutputScheduleAction':\n value = PvtCancelOutputScheduleAction.sanitize(value as PvtCancelOutputScheduleAction);\n break;\n\n case 'PvtCancelAllOutputsScheduleAction':\n value = PvtCancelAllOutputsScheduleAction.sanitize(value as PvtCancelAllOutputsScheduleAction);\n break;\n\n default:\n break;\n }\n\n return value;\n },\n\n convert: (value: BSON.Document): PvtSequenceItem => {\n switch (value.variantValueType as PvtSequenceItemTypeTags) {\n case 'PvtPoint':\n return value.pvtPointValue as PvtPoint;\n\n case 'PvtCallAction':\n return value.pvtCallActionValue as PvtCallAction;\n\n case 'PvtSetDigitalOutputAction':\n return value.pvtSetDigitalOutputActionValue as PvtSetDigitalOutputAction;\n\n case 'PvtSetAllDigitalOutputsAction':\n return value.pvtSetAllDigitalOutputsActionValue as PvtSetAllDigitalOutputsAction;\n\n case 'PvtSetAnalogOutputAction':\n return value.pvtSetAnalogOutputActionValue as PvtSetAnalogOutputAction;\n\n case 'PvtSetAllAnalogOutputsAction':\n return value.pvtSetAllAnalogOutputsActionValue as PvtSetAllAnalogOutputsAction;\n\n case 'PvtCancelOutputScheduleAction':\n return value.pvtCancelOutputScheduleActionValue as PvtCancelOutputScheduleAction;\n\n case 'PvtCancelAllOutputsScheduleAction':\n return value.pvtCancelAllOutputsScheduleActionValue as PvtCancelAllOutputsScheduleAction;\n\n default:\n throw new TypeError(`Variant type tag '${value.variantValueType}' is not valid for variant type PvtSequenceItem.`);\n }\n },\n\n convertBack: (value: PvtSequenceItem): BSON.Document => {\n const typeName = PvtSequenceItem.typeName(value);\n return {\n variantValueType: typeName,\n pvtPointValue: typeName === 'PvtPoint' ? value as PvtPoint : undefined,\n pvtCallActionValue: typeName === 'PvtCallAction' ? value as PvtCallAction : undefined,\n pvtSetDigitalOutputActionValue: typeName === 'PvtSetDigitalOutputAction' ? value as PvtSetDigitalOutputAction : undefined,\n pvtSetAllDigitalOutputsActionValue: typeName === 'PvtSetAllDigitalOutputsAction' ? value as PvtSetAllDigitalOutputsAction : undefined,\n pvtSetAnalogOutputActionValue: typeName === 'PvtSetAnalogOutputAction' ? value as PvtSetAnalogOutputAction : undefined,\n pvtSetAllAnalogOutputsActionValue: typeName === 'PvtSetAllAnalogOutputsAction' ? value as PvtSetAllAnalogOutputsAction : undefined,\n pvtCancelOutputScheduleActionValue: typeName === 'PvtCancelOutputScheduleAction' ? value as PvtCancelOutputScheduleAction : undefined,\n pvtCancelAllOutputsScheduleActionValue: typeName === 'PvtCancelAllOutputsScheduleAction' ? value as PvtCancelAllOutputsScheduleAction : undefined,\n };\n },\n\n /**\n * Attempts to determine which member type is present in a variable.\n */\n typeName: (value: PvtSequenceItem): PvtSequenceItemTypeTags => {\n if (PvtPoint.isA(value)) {\n return 'PvtPoint';\n } else if (PvtCallAction.isA(value)) {\n return 'PvtCallAction';\n } else if (PvtSetDigitalOutputAction.isA(value)) {\n return 'PvtSetDigitalOutputAction';\n } else if (PvtSetAllDigitalOutputsAction.isA(value)) {\n return 'PvtSetAllDigitalOutputsAction';\n } else if (PvtSetAnalogOutputAction.isA(value)) {\n return 'PvtSetAnalogOutputAction';\n } else if (PvtSetAllAnalogOutputsAction.isA(value)) {\n return 'PvtSetAllAnalogOutputsAction';\n } else if (PvtCancelOutputScheduleAction.isA(value)) {\n return 'PvtCancelOutputScheduleAction';\n } else if (PvtCancelAllOutputsScheduleAction.isA(value)) {\n return 'PvtCancelAllOutputsScheduleAction';\n } else if (value == null) {\n throw new RangeError('Null or undefined values are not valid values for type PvtSequenceItem');\n }\n\n throw new TypeError(`Unrecognized type for PvtSequenceItem: ${typeof value} (JSON.stringify(value, NULL, 2))`);\n },\n\n isA: (value: any): value is PvtSequenceItem => {\n try {\n PvtSequenceItem.typeName(value as PvtSequenceItem); // Throws if the type is not recognized.\n return true;\n } catch (err) {\n if (err instanceof TypeError) {\n return false;\n }\n\n throw err;\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BSON } from 'bson';
|
|
2
|
+
import { Measurement } from '../measurement';
|
|
3
|
+
/**
|
|
4
|
+
* Change the state of multiple pins of an analog output port in a PVT sequence or buffer.
|
|
5
|
+
*/
|
|
6
|
+
export interface PvtSetAllAnalogOutputsAction {
|
|
7
|
+
/**
|
|
8
|
+
* The voltages to set the analog output pins to. Must have one entry per pin in the port.
|
|
9
|
+
*/
|
|
10
|
+
values: Measurement[];
|
|
11
|
+
/**
|
|
12
|
+
* If nonzero, specifies the time until the delayed output change occurs.
|
|
13
|
+
*/
|
|
14
|
+
delay?: (Measurement | null);
|
|
15
|
+
/**
|
|
16
|
+
* The voltages to set the output pins to after the delay time expires. Ignored if the delay is zero or unspecified.
|
|
17
|
+
* Must have one entry per pin in the port.
|
|
18
|
+
*/
|
|
19
|
+
futureValues?: (Measurement[] | null);
|
|
20
|
+
}
|
|
21
|
+
export declare const PvtSetAllAnalogOutputsAction: {
|
|
22
|
+
fromBinary: (buffer: Uint8Array) => PvtSetAllAnalogOutputsAction;
|
|
23
|
+
toBinary: (value: PvtSetAllAnalogOutputsAction) => Uint8Array;
|
|
24
|
+
DEFAULT: Readonly<PvtSetAllAnalogOutputsAction>;
|
|
25
|
+
sanitize: (value: PvtSetAllAnalogOutputsAction) => PvtSetAllAnalogOutputsAction;
|
|
26
|
+
convert: (value: BSON.Document) => PvtSetAllAnalogOutputsAction;
|
|
27
|
+
isA: (value: any) => value is PvtSetAllAnalogOutputsAction;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=pvt_set_all_analog_outputs_action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pvt_set_all_analog_outputs_action.d.ts","sourceRoot":"","sources":["../../../src/ascii/pvt_set_all_analog_outputs_action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,WAAW,EAAE,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAE7B;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,CAAC;CAEvC;AAED,eAAO,MAAM,4BAA4B;yBAClB,UAAU,KAAG,4BAA4B;sBAE5C,4BAA4B,KAAG,UAAU;;sBAQzC,4BAA4B,KAAG,4BAA4B;qBAU5D,KAAK,QAAQ,KAAG,4BAA4B;iBAMhD,GAAG;CAUjB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PvtSetAllAnalogOutputsAction = void 0;
|
|
4
|
+
/* This file is generated. Do not modify by hand. */
|
|
5
|
+
const bson_1 = require("bson");
|
|
6
|
+
const measurement_1 = require("../measurement");
|
|
7
|
+
exports.PvtSetAllAnalogOutputsAction = {
|
|
8
|
+
fromBinary: (buffer) => exports.PvtSetAllAnalogOutputsAction.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
|
|
9
|
+
toBinary: (value) => bson_1.BSON.serialize(exports.PvtSetAllAnalogOutputsAction.sanitize(value)),
|
|
10
|
+
DEFAULT: Object.freeze({
|
|
11
|
+
values: [],
|
|
12
|
+
delay: null,
|
|
13
|
+
futureValues: null,
|
|
14
|
+
}),
|
|
15
|
+
sanitize: (value) => {
|
|
16
|
+
if (value == null) {
|
|
17
|
+
throw new TypeError('Expected PvtSetAllAnalogOutputsAction object but got null or undefined.');
|
|
18
|
+
}
|
|
19
|
+
if (typeof value !== 'object') {
|
|
20
|
+
throw new TypeError(`Expected PvtSetAllAnalogOutputsAction object but got ${typeof value}.`);
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
values: Array.from(value.values ?? [], item => measurement_1.Measurement.sanitize(item)),
|
|
24
|
+
delay: value.delay != null ? measurement_1.Measurement.sanitize(value.delay) : null,
|
|
25
|
+
futureValues: Array.from(value.futureValues ?? [], item => measurement_1.Measurement.sanitize(item)),
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
convert: (value) => ({
|
|
29
|
+
values: value.values,
|
|
30
|
+
delay: value.delay,
|
|
31
|
+
futureValues: value.futureValues,
|
|
32
|
+
}),
|
|
33
|
+
isA: (value) => {
|
|
34
|
+
const castValue = value;
|
|
35
|
+
return (value != null &&
|
|
36
|
+
typeof value === 'object' &&
|
|
37
|
+
!!castValue.values?.every(item => measurement_1.Measurement.isA(item)) &&
|
|
38
|
+
(castValue.delay == null || measurement_1.Measurement.isA(castValue.delay)) &&
|
|
39
|
+
(castValue.futureValues == null || !!castValue.futureValues?.every(item => measurement_1.Measurement.isA(item))));
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=pvt_set_all_analog_outputs_action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pvt_set_all_analog_outputs_action.js","sourceRoot":"","sources":["../../../src/ascii/pvt_set_all_analog_outputs_action.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,gDAA6C;AAwBhC,QAAA,4BAA4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AM,EAAE,KAAK,CAAC,MAAM;QACpB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,YAAY,EAAE,KAAK,CAAC,YAAY;KACjC,CAAC;IAEF,GAAG,EAAE,CAAC,KAAU,EAAyC,EAAE;QACzD,MAAM,SAAS,GAAG,KAAqC,CAAC;QACxD,OAAO,CACL,KAAK,IAAI,IAAI;YACb,OAAO,KAAK,KAAK,QAAQ;YACzB,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,yBAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACxD,CAAC,SAAS,CAAC,KAAK,IAAI,IAAI,IAAI,yBAAW,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC7D,CAAC,SAAS,CAAC,YAAY,IAAI,IAAI,IAAI,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,yBAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CACnG,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { Measurement } from '../measurement';\n\n/**\n * Change the state of multiple pins of an analog output port in a PVT sequence or buffer.\n */\nexport interface PvtSetAllAnalogOutputsAction {\n /**\n * The voltages to set the analog output pins to. Must have one entry per pin in the port.\n */\n values: Measurement[];\n\n /**\n * If nonzero, specifies the time until the delayed output change occurs.\n */\n delay?: (Measurement | null);\n\n /**\n * The voltages to set the output pins to after the delay time expires. Ignored if the delay is zero or unspecified.\n * Must have one entry per pin in the port.\n */\n futureValues?: (Measurement[] | null);\n\n}\n\nexport const PvtSetAllAnalogOutputsAction = {\n fromBinary: (buffer: Uint8Array): PvtSetAllAnalogOutputsAction => PvtSetAllAnalogOutputsAction.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n\n toBinary: (value: PvtSetAllAnalogOutputsAction): Uint8Array => BSON.serialize(PvtSetAllAnalogOutputsAction.sanitize(value)),\n\n DEFAULT: Object.freeze({\n values: [],\n delay: null,\n futureValues: null,\n }) as Readonly<PvtSetAllAnalogOutputsAction>,\n\n sanitize: (value: PvtSetAllAnalogOutputsAction): PvtSetAllAnalogOutputsAction => {\n if (value == null) { throw new TypeError('Expected PvtSetAllAnalogOutputsAction object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected PvtSetAllAnalogOutputsAction object but got ${typeof value}.`) }\n return {\n values: Array.from(value.values ?? [], item => Measurement.sanitize(item)),\n delay: value.delay != null ? Measurement.sanitize(value.delay) : null,\n futureValues: Array.from(value.futureValues ?? [], item => Measurement.sanitize(item)),\n };\n },\n\n convert: (value: BSON.Document): PvtSetAllAnalogOutputsAction => ({\n values: value.values,\n delay: value.delay,\n futureValues: value.futureValues,\n }),\n\n isA: (value: any): value is PvtSetAllAnalogOutputsAction => {\n const castValue = value as PvtSetAllAnalogOutputsAction;\n return (\n value != null &&\n typeof value === 'object' &&\n !!castValue.values?.every(item => Measurement.isA(item)) &&\n (castValue.delay == null || Measurement.isA(castValue.delay)) &&\n (castValue.futureValues == null || !!castValue.futureValues?.every(item => Measurement.isA(item)))\n );\n },\n};\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BSON } from 'bson';
|
|
2
|
+
import { DigitalOutputAction } from '../ascii/digital_output_action';
|
|
3
|
+
import { Measurement } from '../measurement';
|
|
4
|
+
/**
|
|
5
|
+
* Change the state of multiple pins of a digital output port in a PVT sequence or buffer.
|
|
6
|
+
*/
|
|
7
|
+
export interface PvtSetAllDigitalOutputsAction {
|
|
8
|
+
/**
|
|
9
|
+
* The states to set the digital output pins to. Must have one entry per pin in the port.
|
|
10
|
+
*/
|
|
11
|
+
values: DigitalOutputAction[];
|
|
12
|
+
/**
|
|
13
|
+
* If nonzero, specifies the time until the delayed output change occurs.
|
|
14
|
+
*/
|
|
15
|
+
delay?: (Measurement | null);
|
|
16
|
+
/**
|
|
17
|
+
* The states to set the output pins to after the delay time expires. Ignored if the delay is zero or unspecified.
|
|
18
|
+
* Must have one entry per pin in the port.
|
|
19
|
+
*/
|
|
20
|
+
futureValues?: (DigitalOutputAction[] | null);
|
|
21
|
+
}
|
|
22
|
+
export declare const PvtSetAllDigitalOutputsAction: {
|
|
23
|
+
fromBinary: (buffer: Uint8Array) => PvtSetAllDigitalOutputsAction;
|
|
24
|
+
toBinary: (value: PvtSetAllDigitalOutputsAction) => Uint8Array;
|
|
25
|
+
DEFAULT: Readonly<PvtSetAllDigitalOutputsAction>;
|
|
26
|
+
sanitize: (value: PvtSetAllDigitalOutputsAction) => PvtSetAllDigitalOutputsAction;
|
|
27
|
+
convert: (value: BSON.Document) => PvtSetAllDigitalOutputsAction;
|
|
28
|
+
isA: (value: any) => value is PvtSetAllDigitalOutputsAction;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=pvt_set_all_digital_outputs_action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pvt_set_all_digital_outputs_action.d.ts","sourceRoot":"","sources":["../../../src/ascii/pvt_set_all_digital_outputs_action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAE9B;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAE7B;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC,CAAC;CAE/C;AAED,eAAO,MAAM,6BAA6B;yBACnB,UAAU,KAAG,6BAA6B;sBAE7C,6BAA6B,KAAG,UAAU;;sBAQ1C,6BAA6B,KAAG,6BAA6B;qBAU9D,KAAK,QAAQ,KAAG,6BAA6B;iBAMjD,GAAG;CAUjB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PvtSetAllDigitalOutputsAction = void 0;
|
|
4
|
+
/* This file is generated. Do not modify by hand. */
|
|
5
|
+
const bson_1 = require("bson");
|
|
6
|
+
const sanitizer_1 = require("../gateway/sanitizer");
|
|
7
|
+
const digital_output_action_1 = require("../ascii/digital_output_action");
|
|
8
|
+
const measurement_1 = require("../measurement");
|
|
9
|
+
exports.PvtSetAllDigitalOutputsAction = {
|
|
10
|
+
fromBinary: (buffer) => exports.PvtSetAllDigitalOutputsAction.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
|
|
11
|
+
toBinary: (value) => bson_1.BSON.serialize(exports.PvtSetAllDigitalOutputsAction.sanitize(value)),
|
|
12
|
+
DEFAULT: Object.freeze({
|
|
13
|
+
values: [],
|
|
14
|
+
delay: null,
|
|
15
|
+
futureValues: null,
|
|
16
|
+
}),
|
|
17
|
+
sanitize: (value) => {
|
|
18
|
+
if (value == null) {
|
|
19
|
+
throw new TypeError('Expected PvtSetAllDigitalOutputsAction object but got null or undefined.');
|
|
20
|
+
}
|
|
21
|
+
if (typeof value !== 'object') {
|
|
22
|
+
throw new TypeError(`Expected PvtSetAllDigitalOutputsAction object but got ${typeof value}.`);
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
values: Array.from(value.values ?? [], item => sanitizer_1.sanitizer.sanitizeEnum(item, 'DigitalOutputAction', digital_output_action_1.DigitalOutputAction, 'items of values')),
|
|
26
|
+
delay: value.delay != null ? measurement_1.Measurement.sanitize(value.delay) : null,
|
|
27
|
+
futureValues: Array.from(value.futureValues ?? [], item => sanitizer_1.sanitizer.sanitizeEnum(item, 'DigitalOutputAction', digital_output_action_1.DigitalOutputAction, 'items of futureValues')),
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
convert: (value) => ({
|
|
31
|
+
values: value.values,
|
|
32
|
+
delay: value.delay,
|
|
33
|
+
futureValues: value.futureValues,
|
|
34
|
+
}),
|
|
35
|
+
isA: (value) => {
|
|
36
|
+
const castValue = value;
|
|
37
|
+
return (value != null &&
|
|
38
|
+
typeof value === 'object' &&
|
|
39
|
+
!!castValue.values?.every(item => sanitizer_1.sanitizer.isEnum(item, digital_output_action_1.DigitalOutputAction)) &&
|
|
40
|
+
(castValue.delay == null || measurement_1.Measurement.isA(castValue.delay)) &&
|
|
41
|
+
(castValue.futureValues == null || !!castValue.futureValues?.every(item => sanitizer_1.sanitizer.isEnum(item, digital_output_action_1.DigitalOutputAction))));
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=pvt_set_all_digital_outputs_action.js.map
|