@zaber/motion 7.15.0 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/LICENSE +436 -1
  2. package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
  3. package/dist/lib/ascii/axis.d.ts +10 -0
  4. package/dist/lib/ascii/axis.d.ts.map +1 -1
  5. package/dist/lib/ascii/axis.js +22 -0
  6. package/dist/lib/ascii/axis.js.map +1 -1
  7. package/dist/lib/ascii/axis_settings.d.ts +8 -0
  8. package/dist/lib/ascii/axis_settings.d.ts.map +1 -1
  9. package/dist/lib/ascii/axis_settings.js +21 -0
  10. package/dist/lib/ascii/axis_settings.js.map +1 -1
  11. package/dist/lib/ascii/device.d.ts +10 -0
  12. package/dist/lib/ascii/device.d.ts.map +1 -1
  13. package/dist/lib/ascii/device.js +21 -0
  14. package/dist/lib/ascii/device.js.map +1 -1
  15. package/dist/lib/ascii/device_settings.d.ts +8 -0
  16. package/dist/lib/ascii/device_settings.d.ts.map +1 -1
  17. package/dist/lib/ascii/device_settings.js +20 -0
  18. package/dist/lib/ascii/device_settings.js.map +1 -1
  19. package/dist/lib/ascii/index.d.ts +0 -1
  20. package/dist/lib/ascii/index.d.ts.map +1 -1
  21. package/dist/lib/ascii/index.js +0 -1
  22. package/dist/lib/ascii/index.js.map +1 -1
  23. package/dist/lib/ascii/lockstep.d.ts +0 -8
  24. package/dist/lib/ascii/lockstep.d.ts.map +1 -1
  25. package/dist/lib/ascii/lockstep.js +0 -20
  26. package/dist/lib/ascii/lockstep.js.map +1 -1
  27. package/dist/lib/ascii/pvt_sequence.d.ts +0 -31
  28. package/dist/lib/ascii/pvt_sequence.d.ts.map +1 -1
  29. package/dist/lib/ascii/pvt_sequence.js +0 -84
  30. package/dist/lib/ascii/pvt_sequence.js.map +1 -1
  31. package/dist/lib/ascii/response.d.ts +4 -1
  32. package/dist/lib/ascii/response.d.ts.map +1 -1
  33. package/dist/lib/ascii/response.js.map +1 -1
  34. package/dist/lib/ascii/servo_tuner.d.ts +11 -30
  35. package/dist/lib/ascii/servo_tuner.d.ts.map +1 -1
  36. package/dist/lib/ascii/servo_tuner.js +12 -42
  37. package/dist/lib/ascii/servo_tuner.js.map +1 -1
  38. package/dist/lib/ascii/simple_tuning.d.ts +5 -4
  39. package/dist/lib/ascii/simple_tuning.d.ts.map +1 -1
  40. package/dist/lib/ascii/simple_tuning.js +6 -6
  41. package/dist/lib/ascii/simple_tuning.js.map +1 -1
  42. package/dist/lib/ascii/stream.d.ts +0 -50
  43. package/dist/lib/ascii/stream.d.ts.map +1 -1
  44. package/dist/lib/ascii/stream.js +0 -126
  45. package/dist/lib/ascii/stream.js.map +1 -1
  46. package/dist/lib/ascii/unknown_response_event.d.ts +4 -1
  47. package/dist/lib/ascii/unknown_response_event.d.ts.map +1 -1
  48. package/dist/lib/ascii/unknown_response_event.js.map +1 -1
  49. package/dist/lib/binary/connection.d.ts +17 -2
  50. package/dist/lib/binary/connection.d.ts.map +1 -1
  51. package/dist/lib/binary/connection.js +14 -3
  52. package/dist/lib/binary/connection.js.map +1 -1
  53. package/dist/lib/index.d.ts +1 -0
  54. package/dist/lib/index.d.ts.map +1 -1
  55. package/dist/lib/index.js +1 -0
  56. package/dist/lib/index.js.map +1 -1
  57. package/dist/lib/library.js +1 -1
  58. package/dist/lib/library.js.map +1 -1
  59. package/dist/lib/microscopy/objective_changer.d.ts +0 -23
  60. package/dist/lib/microscopy/objective_changer.d.ts.map +1 -1
  61. package/dist/lib/microscopy/objective_changer.js +0 -27
  62. package/dist/lib/microscopy/objective_changer.js.map +1 -1
  63. package/dist/lib/requests/get_command_unit_conversion_response.d.ts +13 -0
  64. package/dist/lib/requests/get_command_unit_conversion_response.d.ts.map +1 -0
  65. package/dist/lib/requests/get_command_unit_conversion_response.js +28 -0
  66. package/dist/lib/requests/get_command_unit_conversion_response.js.map +1 -0
  67. package/dist/lib/requests/index.d.ts +2 -0
  68. package/dist/lib/requests/index.d.ts.map +1 -1
  69. package/dist/lib/requests/index.js +2 -0
  70. package/dist/lib/requests/index.js.map +1 -1
  71. package/dist/lib/requests/set_simple_tuning.d.ts +4 -4
  72. package/dist/lib/requests/set_simple_tuning.d.ts.map +1 -1
  73. package/dist/lib/requests/set_simple_tuning.js +12 -12
  74. package/dist/lib/requests/set_simple_tuning.js.map +1 -1
  75. package/dist/lib/requests/unit_convert_native_request.d.ts +17 -0
  76. package/dist/lib/requests/unit_convert_native_request.d.ts.map +1 -0
  77. package/dist/lib/requests/unit_convert_native_request.js +39 -0
  78. package/dist/lib/requests/unit_convert_native_request.js.map +1 -0
  79. package/dist/lib/unit_conversion_descriptor.d.ts +30 -0
  80. package/dist/lib/unit_conversion_descriptor.d.ts.map +1 -0
  81. package/dist/lib/unit_conversion_descriptor.js +37 -0
  82. package/dist/lib/unit_conversion_descriptor.js.map +1 -0
  83. package/dist/lib/unit_table.d.ts +33 -0
  84. package/dist/lib/unit_table.d.ts.map +1 -1
  85. package/dist/lib/unit_table.js +80 -0
  86. package/dist/lib/unit_table.js.map +1 -1
  87. package/package.json +1 -1
  88. package/dist/lib/ascii/lockstep_axes.d.ts +0 -30
  89. package/dist/lib/ascii/lockstep_axes.d.ts.map +0 -1
  90. package/dist/lib/ascii/lockstep_axes.js +0 -37
  91. package/dist/lib/ascii/lockstep_axes.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"connection.js","sourceRoot":"","sources":["../../../src/binary/connection.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,+BAAiD;AACjD,8CAA8D;AAC9D,oDAAsC;AACtC,wCAAiD;AACjD,sDAAwC;AACxC,qCAAkC;AAIlC,uCAAoC;AAEpC,4CAAuD;AAEvD;;GAEG;AACH,MAAa,UAAU;IAgBrB;;OAEG;IACH,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAG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C,CAAC;IAED;;;;OAIG;IACI,IAAI;QACT,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;;AArYH,gCAsYC;AA3XC;;GAEG;AACoB,4BAAiB,GAAW,IAAI,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { map, filter, takeUntil, take } from 'rxjs/operators';\nimport * as gateway from '../gateway';\nimport { events, filterEvent } from '../gateway';\nimport * as requests from '../requests';\nimport { Device } from './device';\nimport { UnknownResponseEvent } from './unknown_response_event';\nimport { ReplyOnlyEvent } from './reply_only_event';\nimport { CommandCode } from './command_code';\nimport { Message } from './message';\nimport { MotionLibException } from '../exceptions';\nimport { registerForFinalization } from '../finalizer';\n\n/**\n * Class representing access to particular connection (serial port, TCP connection) using the legacy Binary protocol.\n */\nexport class Connection {\n /**\n * Event invoked when a response from a device cannot be matched to any known request.\n */\n public unknownResponse!: Observable<UnknownResponseEvent>;\n\n /**\n * Event invoked when a reply-only command such as a move tracking message is received from a device.\n */\n public replyOnly!: Observable<ReplyOnlyEvent>;\n\n /**\n * Default baud rate for serial connections.\n */\n public static readonly DEFAULT_BAUD_RATE: number = 9600;\n\n /**\n * The interface ID identifies thisConnection instance with the underlying library.\n */\n public get interfaceId(): number {\n return this._interfaceId;\n }\n private _interfaceId: number;\n\n /**\n * Returns whether the connection is open.\n * Does not guarantee that the subsequent requests will succeed.\n */\n public get isOpen(): boolean {\n return this._retrieveIsOpen();\n }\n\n constructor(interfaceId: number) {\n this._interfaceId = interfaceId;\n registerForFinalization(this, Connection._free.bind(null, interfaceId));\n this._subscribe();\n }\n\n /**\n * Opens a serial port.\n * @param portName Name of the port to open.\n * @param [options.baudRate=Connection.DEFAULT_BAUD_RATE] Optional baud rate (defaults to 9600).\n * @param [options.useMessageIds=false] Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n * @returns An object representing the port.\n */\n public static async openSerialPort(\n portName: string,\n options: Connection.OpenSerialPortOptions = {}\n ): Promise<Connection> {\n const {\n baudRate = Connection.DEFAULT_BAUD_RATE,\n useMessageIds = false,\n } = options;\n const request: requests.OpenBinaryInterfaceRequest & gateway.Message = {\n ...requests.OpenBinaryInterfaceRequest.DEFAULT,\n interfaceType: requests.InterfaceType.SERIAL_PORT,\n portName: portName,\n baudRate: baudRate,\n useMessageIds: useMessageIds,\n toBinary() {\n return requests.OpenBinaryInterfaceRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.OpenInterfaceResponse>(\n 'binary/interface/open',\n request,\n requests.OpenInterfaceResponse.fromBinary);\n return new Connection(response.interfaceId);\n }\n\n /**\n * Opens a TCP connection.\n * @param hostName Hostname or IP address.\n * @param port Port number.\n * @param [options.useMessageIds=false] Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n * @returns An object representing the connection.\n */\n public static async openTcp(\n hostName: string,\n port: number,\n options: Connection.OpenTcpOptions = {}\n ): Promise<Connection> {\n const {\n useMessageIds = false,\n } = options;\n const request: requests.OpenBinaryInterfaceRequest & gateway.Message = {\n ...requests.OpenBinaryInterfaceRequest.DEFAULT,\n interfaceType: requests.InterfaceType.TCP,\n hostName: hostName,\n port: port,\n useMessageIds: useMessageIds,\n toBinary() {\n return requests.OpenBinaryInterfaceRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.OpenInterfaceResponse>(\n 'binary/interface/open',\n request,\n requests.OpenInterfaceResponse.fromBinary);\n return new Connection(response.interfaceId);\n }\n\n /**\n * Close the connection.\n */\n public async close(): Promise<void> {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('interface/close', request);\n }\n\n /**\n * Sends a generic Binary command to this connection.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param device Device address to send the command to. Use zero for broadcast.\n * @param command Command to send.\n * @param [data=0] Optional data argument to the command. Defaults to zero.\n * @param [options.timeout=0.0] Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.\n * @param [options.checkErrors=true] Controls whether to throw an exception when the device rejects the command.\n * @returns A response to the command.\n */\n public async genericCommand(\n device: number,\n command: CommandCode,\n data: number = 0,\n options: Connection.GenericCommandOptions = {}\n ): Promise<Message> {\n const {\n timeout = 0.0,\n checkErrors = true,\n } = options;\n const request: requests.GenericBinaryRequest & gateway.Message = {\n ...requests.GenericBinaryRequest.DEFAULT,\n interfaceId: this.interfaceId,\n device: device,\n command: command,\n data: data,\n timeout: timeout,\n checkErrors: checkErrors,\n toBinary() {\n return requests.GenericBinaryRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<Message>(\n 'binary/interface/generic_command',\n request,\n Message.fromBinary);\n return response;\n }\n\n /**\n * Sends a generic Binary command to this connection without expecting a response.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param device Device address to send the command to. Use zero for broadcast.\n * @param command Command to send.\n * @param [data=0] Optional data argument to the command. Defaults to zero.\n */\n public async genericCommandNoResponse(\n device: number,\n command: CommandCode,\n data: number = 0\n ): Promise<void> {\n const request: requests.GenericBinaryRequest & gateway.Message = {\n ...requests.GenericBinaryRequest.DEFAULT,\n interfaceId: this.interfaceId,\n device: device,\n command: command,\n data: data,\n toBinary() {\n return requests.GenericBinaryRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('binary/interface/generic_command_no_response', request);\n }\n\n /**\n * Sends a generic Binary command to this connection and expects responses from one or more devices.\n * Responses are returned in order of arrival.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param command Command to send.\n * @param [data=0] Optional data argument to the command. Defaults to zero.\n * @param [options.timeout=0.0] Number of seconds to wait for all responses from the device chain. 0 or negative defaults to 0.5s.\n * @param [options.checkErrors=true] Controls whether to throw an exception when any device rejects the command.\n * @returns All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: CommandCode,\n data: number = 0,\n options: Connection.GenericCommandMultiResponseOptions = {}\n ): Promise<Message[]> {\n const {\n timeout = 0.0,\n checkErrors = true,\n } = options;\n const request: requests.GenericBinaryRequest & gateway.Message = {\n ...requests.GenericBinaryRequest.DEFAULT,\n interfaceId: this.interfaceId,\n command: command,\n data: data,\n timeout: timeout,\n checkErrors: checkErrors,\n toBinary() {\n return requests.GenericBinaryRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BinaryMessageCollection>(\n 'binary/interface/generic_command_multi_response',\n request,\n requests.BinaryMessageCollection.fromBinary);\n return response.messages;\n }\n\n /**\n * Renumbers devices present on this connection. After renumbering, you must identify devices again.\n * @returns Total number of devices that responded to the renumber.\n */\n public async renumberDevices(): Promise<number> {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'binary/device/renumber',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Attempts to detect any devices present on this connection.\n * @param [options.identifyDevices=true] Determines whether device identification should be performed as well.\n * @returns Array of detected devices.\n */\n public async detectDevices(\n options: Connection.DetectDevicesOptions = {}\n ): Promise<Device[]> {\n const {\n identifyDevices = true,\n } = options;\n const request: requests.BinaryDeviceDetectRequest & gateway.Message = {\n ...requests.BinaryDeviceDetectRequest.DEFAULT,\n interfaceId: this.interfaceId,\n identifyDevices: identifyDevices,\n toBinary() {\n return requests.BinaryDeviceDetectRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BinaryDeviceDetectResponse>(\n 'binary/device/detect',\n request,\n requests.BinaryDeviceDetectResponse.fromBinary);\n return response.devices.map(deviceAddress => this.getDevice(deviceAddress));\n }\n\n /**\n * Gets a Device class instance which allows you to control a particular device on this connection.\n * Devices are numbered from 1.\n * @param deviceAddress Address of device intended to control. Address is configured for each device.\n * @returns Device instance.\n */\n public getDevice(\n deviceAddress: number\n ): Device {\n if (deviceAddress <= 0) {\n throw new TypeError('Invalid value; physical devices are numbered from 1.');\n }\n return new Device(this, deviceAddress);\n }\n\n /**\n * Returns is open.\n * @returns Is open.\n */\n private _retrieveIsOpen(): boolean {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'interface/get_is_open',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string that represents the connection.\n * @returns A string that represents the connection.\n */\n public toString(): string {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'interface/to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Releases native resources of the connection.\n * @param interfaceId The ID of the connection.\n */\n private static _free(\n interfaceId: number\n ): void {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('interface/free', request);\n }\n\n private _disconnected!: ReplaySubject<MotionLibException>;\n\n /**\n * Event invoked when connection is interrupted or closed.\n */\n public get disconnected(): Observable<MotionLibException> {\n return this._disconnected;\n }\n\n private _subscribe(): void {\n this._disconnected = new ReplaySubject<MotionLibException>();\n\n this.unknownResponse = events.pipe(\n takeUntil(this._disconnected),\n filterEvent<requests.UnknownBinaryResponseEventWrapper>('binary/interface/unknown_response'),\n filter(event => event.interfaceId === this.interfaceId),\n map(event => event.unknownResponse)\n );\n\n this.replyOnly = events.pipe(\n takeUntil(this._disconnected),\n filterEvent<requests.BinaryReplyOnlyEventWrapper>('binary/interface/reply_only'),\n filter(event => event.interfaceId === this.interfaceId),\n map(event => event.reply)\n );\n\n events.pipe(\n filterEvent<requests.DisconnectedEvent>('interface/disconnected'),\n filter(event => event.interfaceId === this.interfaceId),\n take(1),\n map(({ errorMessage, errorType }) => gateway.convertToException(errorType, errorMessage))\n ).subscribe(this._disconnected);\n }\n\n /**\n * Releases the native resources of the connection.\n * Should only be called if your environment does not support FinalizationRegistry.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n */\n public free(): void {\n Connection._free(this.interfaceId);\n }\n}\n\nnamespace Connection {\n export interface OpenSerialPortOptions {\n /**\n * Optional baud rate (defaults to 9600).\n */\n baudRate?: number;\n /**\n * Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n */\n useMessageIds?: boolean;\n }\n export interface OpenTcpOptions {\n /**\n * Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n */\n useMessageIds?: boolean;\n }\n export interface GenericCommandOptions {\n /**\n * Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.\n */\n timeout?: number;\n /**\n * Controls whether to throw an exception when the device rejects the command.\n */\n checkErrors?: boolean;\n }\n export interface GenericCommandMultiResponseOptions {\n /**\n * Number of seconds to wait for all responses from the device chain. 0 or negative defaults to 0.5s.\n */\n timeout?: number;\n /**\n * Controls whether to throw an exception when any device rejects the command.\n */\n checkErrors?: boolean;\n }\n export interface DetectDevicesOptions {\n /**\n * Determines whether device identification should be performed as well.\n */\n identifyDevices?: boolean;\n }\n}\n"]}
1
+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BAAM,CAAC,IAAI,CACT,IAAA,qBAAW,EAA6B,wBAAwB,CAAC,EACjE,IAAA,kBAAM,EAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,KAAK,IAAI,CAAC,WAAW,CAAC,EACvD,IAAA,gBAAI,EAAC,CAAC,CAAC,EACP,IAAA,eAAG,EAAC,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAC1F,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAClC,CAAC;IAED;;;;OAIG;IACI,IAAI;QACT,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;;AAlZH,gCAmZC;AAxYC;;GAEG;AACoB,4BAAiB,GAAW,IAAI,CAAC;AAExD;;;GAGG;AACoB,yBAAc,GAAW,KAAK,CAAC;AAEtD;;;;GAIG;AACoB,+BAAoB,GAAW,KAAK,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { map, filter, takeUntil, take } from 'rxjs/operators';\nimport * as gateway from '../gateway';\nimport { events, filterEvent } from '../gateway';\nimport * as requests from '../requests';\nimport { Device } from './device';\nimport { UnknownResponseEvent } from './unknown_response_event';\nimport { ReplyOnlyEvent } from './reply_only_event';\nimport { CommandCode } from './command_code';\nimport { Message } from './message';\nimport { MotionLibException } from '../exceptions';\nimport { registerForFinalization } from '../finalizer';\n\n/**\n * Class representing access to particular connection (serial port, TCP connection) using the legacy Binary protocol.\n */\nexport class Connection {\n /**\n * Event invoked when a response from a device cannot be matched to any known request.\n */\n public unknownResponse!: Observable<UnknownResponseEvent>;\n\n /**\n * Event invoked when a reply-only command such as a move tracking message is received from a device.\n */\n public replyOnly!: Observable<ReplyOnlyEvent>;\n\n /**\n * Default baud rate for serial connections.\n */\n public static readonly DEFAULT_BAUD_RATE: number = 9600;\n\n /**\n * Commands sent over this port are forwarded to the device chain.\n * The bandwidth may be limited as the commands are forwarded over a serial connection.\n */\n public static readonly TCP_PORT_CHAIN: number = 55550;\n\n /**\n * Commands send over this port are processed only by the device\n * and not forwarded to the rest of the chain.\n * Using this port typically makes the communication faster.\n */\n public static readonly TCP_PORT_DEVICE_ONLY: number = 55551;\n\n /**\n * The interface ID identifies thisConnection instance with the underlying library.\n */\n public get interfaceId(): number {\n return this._interfaceId;\n }\n private _interfaceId: number;\n\n /**\n * Returns whether the connection is open.\n * Does not guarantee that the subsequent requests will succeed.\n */\n public get isOpen(): boolean {\n return this._retrieveIsOpen();\n }\n\n constructor(interfaceId: number) {\n this._interfaceId = interfaceId;\n registerForFinalization(this, Connection._free.bind(null, interfaceId));\n this._subscribe();\n }\n\n /**\n * Opens a serial port.\n * @param portName Name of the port to open.\n * @param [options.baudRate=Connection.DEFAULT_BAUD_RATE] Optional baud rate (defaults to 9600).\n * @param [options.useMessageIds=false] Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n * @returns An object representing the port.\n */\n public static async openSerialPort(\n portName: string,\n options: Connection.OpenSerialPortOptions = {}\n ): Promise<Connection> {\n const {\n baudRate = Connection.DEFAULT_BAUD_RATE,\n useMessageIds = false,\n } = options;\n const request: requests.OpenBinaryInterfaceRequest & gateway.Message = {\n ...requests.OpenBinaryInterfaceRequest.DEFAULT,\n interfaceType: requests.InterfaceType.SERIAL_PORT,\n portName: portName,\n baudRate: baudRate,\n useMessageIds: useMessageIds,\n toBinary() {\n return requests.OpenBinaryInterfaceRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.OpenInterfaceResponse>(\n 'binary/interface/open',\n request,\n requests.OpenInterfaceResponse.fromBinary);\n return new Connection(response.interfaceId);\n }\n\n /**\n * Opens a TCP connection.\n * @param hostName Hostname or IP address.\n * @param [options.port=Connection.TCP_PORT_CHAIN] Optional port number (defaults to 55550).\n * @param [options.useMessageIds=false] Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n * @returns An object representing the connection.\n */\n public static async openTcp(\n hostName: string,\n options: Connection.OpenTcpOptions = {}\n ): Promise<Connection> {\n const {\n port = Connection.TCP_PORT_CHAIN,\n useMessageIds = false,\n } = options;\n const request: requests.OpenBinaryInterfaceRequest & gateway.Message = {\n ...requests.OpenBinaryInterfaceRequest.DEFAULT,\n interfaceType: requests.InterfaceType.TCP,\n hostName: hostName,\n port: port,\n useMessageIds: useMessageIds,\n toBinary() {\n return requests.OpenBinaryInterfaceRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.OpenInterfaceResponse>(\n 'binary/interface/open',\n request,\n requests.OpenInterfaceResponse.fromBinary);\n return new Connection(response.interfaceId);\n }\n\n /**\n * Close the connection.\n */\n public async close(): Promise<void> {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('interface/close', request);\n }\n\n /**\n * Sends a generic Binary command to this connection.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param device Device address to send the command to. Use zero for broadcast.\n * @param command Command to send.\n * @param [data=0] Optional data argument to the command. Defaults to zero.\n * @param [options.timeout=0.0] Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.\n * @param [options.checkErrors=true] Controls whether to throw an exception when the device rejects the command.\n * @returns A response to the command.\n */\n public async genericCommand(\n device: number,\n command: CommandCode,\n data: number = 0,\n options: Connection.GenericCommandOptions = {}\n ): Promise<Message> {\n const {\n timeout = 0.0,\n checkErrors = true,\n } = options;\n const request: requests.GenericBinaryRequest & gateway.Message = {\n ...requests.GenericBinaryRequest.DEFAULT,\n interfaceId: this.interfaceId,\n device: device,\n command: command,\n data: data,\n timeout: timeout,\n checkErrors: checkErrors,\n toBinary() {\n return requests.GenericBinaryRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<Message>(\n 'binary/interface/generic_command',\n request,\n Message.fromBinary);\n return response;\n }\n\n /**\n * Sends a generic Binary command to this connection without expecting a response.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param device Device address to send the command to. Use zero for broadcast.\n * @param command Command to send.\n * @param [data=0] Optional data argument to the command. Defaults to zero.\n */\n public async genericCommandNoResponse(\n device: number,\n command: CommandCode,\n data: number = 0\n ): Promise<void> {\n const request: requests.GenericBinaryRequest & gateway.Message = {\n ...requests.GenericBinaryRequest.DEFAULT,\n interfaceId: this.interfaceId,\n device: device,\n command: command,\n data: data,\n toBinary() {\n return requests.GenericBinaryRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('binary/interface/generic_command_no_response', request);\n }\n\n /**\n * Sends a generic Binary command to this connection and expects responses from one or more devices.\n * Responses are returned in order of arrival.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param command Command to send.\n * @param [data=0] Optional data argument to the command. Defaults to zero.\n * @param [options.timeout=0.0] Number of seconds to wait for all responses from the device chain. 0 or negative defaults to 0.5s.\n * @param [options.checkErrors=true] Controls whether to throw an exception when any device rejects the command.\n * @returns All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: CommandCode,\n data: number = 0,\n options: Connection.GenericCommandMultiResponseOptions = {}\n ): Promise<Message[]> {\n const {\n timeout = 0.0,\n checkErrors = true,\n } = options;\n const request: requests.GenericBinaryRequest & gateway.Message = {\n ...requests.GenericBinaryRequest.DEFAULT,\n interfaceId: this.interfaceId,\n command: command,\n data: data,\n timeout: timeout,\n checkErrors: checkErrors,\n toBinary() {\n return requests.GenericBinaryRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BinaryMessageCollection>(\n 'binary/interface/generic_command_multi_response',\n request,\n requests.BinaryMessageCollection.fromBinary);\n return response.messages;\n }\n\n /**\n * Renumbers devices present on this connection. After renumbering, you must identify devices again.\n * @returns Total number of devices that responded to the renumber.\n */\n public async renumberDevices(): Promise<number> {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'binary/device/renumber',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Attempts to detect any devices present on this connection.\n * @param [options.identifyDevices=true] Determines whether device identification should be performed as well.\n * @returns Array of detected devices.\n */\n public async detectDevices(\n options: Connection.DetectDevicesOptions = {}\n ): Promise<Device[]> {\n const {\n identifyDevices = true,\n } = options;\n const request: requests.BinaryDeviceDetectRequest & gateway.Message = {\n ...requests.BinaryDeviceDetectRequest.DEFAULT,\n interfaceId: this.interfaceId,\n identifyDevices: identifyDevices,\n toBinary() {\n return requests.BinaryDeviceDetectRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BinaryDeviceDetectResponse>(\n 'binary/device/detect',\n request,\n requests.BinaryDeviceDetectResponse.fromBinary);\n return response.devices.map(deviceAddress => this.getDevice(deviceAddress));\n }\n\n /**\n * Gets a Device class instance which allows you to control a particular device on this connection.\n * Devices are numbered from 1.\n * @param deviceAddress Address of device intended to control. Address is configured for each device.\n * @returns Device instance.\n */\n public getDevice(\n deviceAddress: number\n ): Device {\n if (deviceAddress <= 0) {\n throw new TypeError('Invalid value; physical devices are numbered from 1.');\n }\n return new Device(this, deviceAddress);\n }\n\n /**\n * Returns is open.\n * @returns Is open.\n */\n private _retrieveIsOpen(): boolean {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'interface/get_is_open',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string that represents the connection.\n * @returns A string that represents the connection.\n */\n public toString(): string {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'interface/to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Releases native resources of the connection.\n * @param interfaceId The ID of the connection.\n */\n private static _free(\n interfaceId: number\n ): void {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: interfaceId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('interface/free', request);\n }\n\n private _disconnected!: ReplaySubject<MotionLibException>;\n\n /**\n * Event invoked when connection is interrupted or closed.\n */\n public get disconnected(): Observable<MotionLibException> {\n return this._disconnected;\n }\n\n private _subscribe(): void {\n this._disconnected = new ReplaySubject<MotionLibException>();\n\n this.unknownResponse = events.pipe(\n takeUntil(this._disconnected),\n filterEvent<requests.UnknownBinaryResponseEventWrapper>('binary/interface/unknown_response'),\n filter(event => event.interfaceId === this.interfaceId),\n map(event => event.unknownResponse)\n );\n\n this.replyOnly = events.pipe(\n takeUntil(this._disconnected),\n filterEvent<requests.BinaryReplyOnlyEventWrapper>('binary/interface/reply_only'),\n filter(event => event.interfaceId === this.interfaceId),\n map(event => event.reply)\n );\n\n events.pipe(\n filterEvent<requests.DisconnectedEvent>('interface/disconnected'),\n filter(event => event.interfaceId === this.interfaceId),\n take(1),\n map(({ errorMessage, errorType }) => gateway.convertToException(errorType, errorMessage))\n ).subscribe(this._disconnected);\n }\n\n /**\n * Releases the native resources of the connection.\n * Should only be called if your environment does not support FinalizationRegistry.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n */\n public free(): void {\n Connection._free(this.interfaceId);\n }\n}\n\nnamespace Connection {\n export interface OpenSerialPortOptions {\n /**\n * Optional baud rate (defaults to 9600).\n */\n baudRate?: number;\n /**\n * Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n */\n useMessageIds?: boolean;\n }\n export interface OpenTcpOptions {\n /**\n * Optional port number (defaults to 55550).\n */\n port?: number;\n /**\n * Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n */\n useMessageIds?: boolean;\n }\n export interface GenericCommandOptions {\n /**\n * Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.\n */\n timeout?: number;\n /**\n * Controls whether to throw an exception when the device rejects the command.\n */\n checkErrors?: boolean;\n }\n export interface GenericCommandMultiResponseOptions {\n /**\n * Number of seconds to wait for all responses from the device chain. 0 or negative defaults to 0.5s.\n */\n timeout?: number;\n /**\n * Controls whether to throw an exception when any device rejects the command.\n */\n checkErrors?: boolean;\n }\n export interface DetectDevicesOptions {\n /**\n * Determines whether device identification should be performed as well.\n */\n identifyDevices?: boolean;\n }\n}\n"]}
@@ -15,6 +15,7 @@ export * from './measurement';
15
15
  export * from './named_parameter';
16
16
  export * from './rotation_direction';
17
17
  export * from './tools';
18
+ export * from './unit_conversion_descriptor';
18
19
  export * from './unit_table';
19
20
  export * from './units';
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
package/dist/lib/index.js CHANGED
@@ -45,6 +45,7 @@ __exportStar(require("./measurement"), exports);
45
45
  __exportStar(require("./named_parameter"), exports);
46
46
  __exportStar(require("./rotation_direction"), exports);
47
47
  __exportStar(require("./tools"), exports);
48
+ __exportStar(require("./unit_conversion_descriptor"), exports);
48
49
  __exportStar(require("./unit_table"), exports);
49
50
  __exportStar(require("./units"), exports);
50
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,iDAAiC;AACjC,mDAAmC;AACnC,iDAAiC;AACjC,2DAA2C;AAC3C,qDAAqC;AACrC,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AACxC,+CAA6B;AAC7B,qDAAmC;AACnC,4CAA0B;AAC1B,oDAAkC;AAClC,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,0CAAwB","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * as ascii from './ascii';\nexport * as binary from './binary';\nexport * as gcode from './gcode';\nexport * as microscopy from './microscopy';\nexport * as product from './product';\nexport * from './axis_address';\nexport * from './channel_address';\nexport * from './device_db_source';\nexport * from './device_db_source_type';\nexport * from './exceptions';\nexport * from './firmware_version';\nexport * from './library';\nexport * from './log_output_mode';\nexport * from './measurement';\nexport * from './named_parameter';\nexport * from './rotation_direction';\nexport * from './tools';\nexport * from './unit_table';\nexport * from './units';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,iDAAiC;AACjC,mDAAmC;AACnC,iDAAiC;AACjC,2DAA2C;AAC3C,qDAAqC;AACrC,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AACxC,+CAA6B;AAC7B,qDAAmC;AACnC,4CAA0B;AAC1B,oDAAkC;AAClC,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,0CAAwB;AACxB,+DAA6C;AAC7C,+CAA6B;AAC7B,0CAAwB","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * as ascii from './ascii';\nexport * as binary from './binary';\nexport * as gcode from './gcode';\nexport * as microscopy from './microscopy';\nexport * as product from './product';\nexport * from './axis_address';\nexport * from './channel_address';\nexport * from './device_db_source';\nexport * from './device_db_source_type';\nexport * from './exceptions';\nexport * from './firmware_version';\nexport * from './library';\nexport * from './log_output_mode';\nexport * from './measurement';\nexport * from './named_parameter';\nexport * from './rotation_direction';\nexport * from './tools';\nexport * from './unit_conversion_descriptor';\nexport * from './unit_table';\nexport * from './units';\n"]}
@@ -172,7 +172,7 @@ class Library {
172
172
  const request = {
173
173
  ...requests.CheckVersionRequest.DEFAULT,
174
174
  host: 'js',
175
- version: '7.15.0',
175
+ version: '8.0.1',
176
176
  toBinary() {
177
177
  return requests.CheckVersionRequest.toBinary(this);
178
178
  },
@@ -1 +1 @@
1
- {"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AACrC,qDAAuC;AAKvC,MAAa,OAAO;IAClB;;;;OAIG;IACI,MAAM,CAAC,YAAY,CACxB,IAAmB,EACnB,QAAiB;QAEjB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,QAAQ;YAClB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAC7B,UAA8B,EAC9B,aAAsB;QAEtB,MAAM,OAAO,GAAwD;YACnE,GAAG,QAAQ,CAAC,wBAAwB,CAAC,OAAO;YAC5C,UAAU,EAA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5C,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,YAAY;QACxB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,QAAQ;YACjB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AA3LD,0BA2LC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\nimport { DeviceDbSource } from './device_db_source';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Sets a sequence of sources. When the library needs device information,\n * it will try each source in the order they are provided.\n * @param sources The list of sources the library will access data from.\n */\n public static setDeviceDbSources(\n ...sources: DeviceDbSource[]\n ): void {\n const request: requests.SetDeviceDbLayeredSourcesRequest & gateway.Message = {\n ...requests.SetDeviceDbLayeredSourcesRequest.DEFAULT,\n sources: sources,\n toBinary() {\n return requests.SetDeviceDbLayeredSourcesRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_sources', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Checks if the Device DB store is currently enabled.\n * @returns True if the Device DB store is enabled.\n */\n public static isDeviceDbStoreEnabled(): boolean {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device_db/check_store',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Clears the Device DB store on the local filesystem.\n * Note: If the device DB was enabled with a custom store location, store files will be removed in that location.\n */\n public static async clearDeviceDbStore(): Promise<void> {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device_db/clear_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '7.15.0',\n toBinary() {\n return requests.CheckVersionRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/check_version', request);\n }\n}\n\ngateway.addInitCallback(Library.checkVersion);\n"]}
1
+ {"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AACrC,qDAAuC;AAKvC,MAAa,OAAO;IAClB;;;;OAIG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IAAa;QAEb,MAAM,OAAO,GAAsD;YACjE,GAAG,QAAQ,CAAC,sBAAsB,CAAC,OAAO;YAC1C,IAAI,EAAE,IAAI;YACV,QAAQ;gBACN,OAAO,QAAQ,CAAC,sBAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACxD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,oBAAoB,CAChC,MAAc;QAEd,MAAM,OAAO,GAA0C;YACrD,GAAG,QAAQ,CAAC,UAAU,CAAC,OAAO;YAC9B,KAAK,EAAE,MAAM;YACb,QAAQ;gBACN,OAAO,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC5C,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,YAAY;QACxB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,OAAO;YAChB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AA3LD,0BA2LC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\nimport { DeviceDbSource } from './device_db_source';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Sets a sequence of sources. When the library needs device information,\n * it will try each source in the order they are provided.\n * @param sources The list of sources the library will access data from.\n */\n public static setDeviceDbSources(\n ...sources: DeviceDbSource[]\n ): void {\n const request: requests.SetDeviceDbLayeredSourcesRequest & gateway.Message = {\n ...requests.SetDeviceDbLayeredSourcesRequest.DEFAULT,\n sources: sources,\n toBinary() {\n return requests.SetDeviceDbLayeredSourcesRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_sources', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Checks if the Device DB store is currently enabled.\n * @returns True if the Device DB store is enabled.\n */\n public static isDeviceDbStoreEnabled(): boolean {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device_db/check_store',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Clears the Device DB store on the local filesystem.\n * Note: If the device DB was enabled with a custom store location, store files will be removed in that location.\n */\n public static async clearDeviceDbStore(): Promise<void> {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device_db/clear_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '8.0.1',\n toBinary() {\n return requests.CheckVersionRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/check_version', request);\n }\n}\n\ngateway.addInitCallback(Library.checkVersion);\n"]}
@@ -1,4 +1,3 @@
1
- import { Connection } from '../ascii/connection';
2
1
  import { Device } from '../ascii/device';
3
2
  import { Axis } from '../ascii/axis';
4
3
  import { Measurement } from '../measurement';
@@ -24,18 +23,6 @@ export declare class ObjectiveChanger {
24
23
  * If the device is identified, this constructor will ensure it is an objective changer.
25
24
  */
26
25
  constructor(turret: Device, focusAxis: Axis);
27
- /**
28
- * @deprecated Use microscope's `Find` method instead or instantiate manually.
29
- *
30
- * Finds an objective changer on a connection.
31
- * In case of conflict, specify the optional device addresses.
32
- * Devices on the connection must be identified.
33
- * @param connection Connection on which to detect the objective changer.
34
- * @param [options.turretAddress=0] Optional device address of the turret device (X-MOR).
35
- * @param [options.focusAddress=0] Optional device address of the focus device (X-LDA).
36
- * @returns New instance of objective changer.
37
- */
38
- static find(connection: Connection, options?: ObjectiveChanger.FindOptions): Promise<ObjectiveChanger>;
39
26
  /**
40
27
  * Changes the objective.
41
28
  * Runs a sequence of movements switching from the current objective to the new one.
@@ -86,16 +73,6 @@ export declare class ObjectiveChanger {
86
73
  toString(): string;
87
74
  }
88
75
  declare namespace ObjectiveChanger {
89
- interface FindOptions {
90
- /**
91
- * Optional device address of the turret device (X-MOR).
92
- */
93
- turretAddress?: number;
94
- /**
95
- * Optional device address of the focus device (X-LDA).
96
- */
97
- focusAddress?: number;
98
- }
99
76
  interface ChangeOptions {
100
77
  /**
101
78
  * Optional offset from the focus datum.
@@ -1 +1 @@
1
- {"version":3,"file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AK,GAAG,MAAqB,GAC3C,OAAO,CAAC,IAAI,CAAC;IAiBhB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAexB;;;OAGG;IACI,QAAQ,IAAI,MAAM;CAgB1B;AAED,kBAAU,gBAAgB,CAAC;IACzB,UAAiB,WAAW;QACxB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB;IACD,UAAiB,aAAa;QAC1B;;WAEG;QACH,WAAW,CAAC,EAAE,WAAW,CAAC;KAC7B;CACF"}
1
+ {"version":3,"file":"objective_changer.d.ts","sourceRoot":"","sources":["../../../src/microscopy/objective_changer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAS,MAAM,UAAU,CAAC;AAExD;;;;GAIG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,IAAW,MAAM,IAAI,MAAM,CAE1B;IACD,OAAO,CAAC,OAAO,CAAS;IAExB;;OAEG;IACH,IAAW,SAAS,IAAI,IAAI,CAE3B;IACD,OAAO,CAAC,UAAU,CAAO;IAEzB;;;OAGG;gBACS,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI;IAM3C;;;;;;OAMG;IACU,MAAM,CACjB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,gBAAgB,CAAC,aAAkB,GAC3C,OAAO,CAAC,IAAI,CAAC;IAoBhB;;OAEG;IACU,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAerC;;;;OAIG;IACU,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC;IAkBnD;;;OAGG;IACU,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;IAkBrD;;;;;;OAMG;IACU,aAAa,CACxB,IAAI,GAAE,MAAM,GAAG,KAAK,GAAG,MAAqB,GAC3C,OAAO,CAAC,MAAM,CAAC;IAoBlB;;;;;;OAMG;IACU,aAAa,CACxB,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,MAAM,GAAG,KAAK,GAAG,MAAqB,GAC3C,OAAO,CAAC,IAAI,CAAC;IAiBhB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAexB;;;OAGG;IACI,QAAQ,IAAI,MAAM;CAgB1B;AAED,kBAAU,gBAAgB,CAAC;IACzB,UAAiB,aAAa;QAC1B;;WAEG;QACH,WAAW,CAAC,EAAE,WAAW,CAAC;KAC7B;CACF"}
@@ -27,8 +27,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.ObjectiveChanger = void 0;
29
29
  const gateway = __importStar(require("../gateway"));
30
- const device_1 = require("../ascii/device");
31
- const axis_1 = require("../ascii/axis");
32
30
  const requests = __importStar(require("../requests"));
33
31
  const units_1 = require("../units");
34
32
  /**
@@ -58,31 +56,6 @@ class ObjectiveChanger {
58
56
  this._focusAxis = focusAxis;
59
57
  this._verifyIsChanger();
60
58
  }
61
- /**
62
- * @deprecated Use microscope's `Find` method instead or instantiate manually.
63
- *
64
- * Finds an objective changer on a connection.
65
- * In case of conflict, specify the optional device addresses.
66
- * Devices on the connection must be identified.
67
- * @param connection Connection on which to detect the objective changer.
68
- * @param [options.turretAddress=0] Optional device address of the turret device (X-MOR).
69
- * @param [options.focusAddress=0] Optional device address of the focus device (X-LDA).
70
- * @returns New instance of objective changer.
71
- */
72
- static async find(connection, options = {}) {
73
- const { turretAddress = 0, focusAddress = 0, } = options;
74
- const request = {
75
- ...requests.ObjectiveChangerRequest.DEFAULT,
76
- interfaceId: connection.interfaceId,
77
- turretAddress: turretAddress,
78
- focusAddress: focusAddress,
79
- toBinary() {
80
- return requests.ObjectiveChangerRequest.toBinary(this);
81
- },
82
- };
83
- const response = await gateway.callAsync('objective_changer/detect', request, requests.ObjectiveChangerCreateResponse.fromBinary);
84
- return new ObjectiveChanger(new device_1.Device(connection, response.turret), new axis_1.Axis(new device_1.Device(connection, response.focusAddress), response.focusAxis));
85
- }
86
59
  /**
87
60
  * Changes the objective.
88
61
  * Runs a sequence of movements switching from the current objective to the new one.
@@ -1 +1 @@
1
- {"version":3,"file":"objective_changer.js","sourceRoot":"","sources":["../../../src/microscopy/objective_changer.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAEtC,4CAAyC;AACzC,wCAAqC;AAErC,sDAAwC;AACxC,oCAAwD;AAExD;;;;GAIG;AACH,MAAa,gBAAgB;IAC3B;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAGD;;;OAGG;IACH,YAAY,MAAc,EAAE,SAAe;QACzC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAED;;;;;;;;;;OAUG;IACI,MAAM,CAAC,KAAK,CAAC,IAAI,CACtB,UAAsB,EACtB,UAAwC,EAAE;QAE1C,MAAM,EACJ,aAAa,GAAG,CAAC,EACjB,YAAY,GAAG,CAAC,GACjB,GAAG,OAAO,CAAC;QACZ,MAAM,OAAO,GAAuD;YAClE,GAAG,QAAQ,CAAC,uBAAuB,CAAC,OAAO;YAC3C,WAAW,EAAE,UAAU,CAAC,WAAW;YACnC,aAAa,EAAE,aAAa;YAC5B,YAAY,EAAE,YAAY;YAC1B,QAAQ;gBACN,OAAO,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI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============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { Connection } from '../ascii/connection';\nimport { Device } from '../ascii/device';\nimport { Axis } from '../ascii/axis';\nimport { Measurement } from '../measurement';\nimport * as requests from '../requests';\nimport { Angle, Length, Native, Units } from '../units';\n\n/**\n * Represents an objective changer of a microscope.\n * Unstable. Expect breaking changes in future releases.\n * Requires at least Firmware 7.32.\n */\nexport class ObjectiveChanger {\n /**\n * Device address of the turret.\n */\n public get turret(): Device {\n return this._turret;\n }\n private _turret: Device;\n\n /**\n * The focus axis.\n */\n public get focusAxis(): Axis {\n return this._focusAxis;\n }\n private _focusAxis: Axis;\n\n /**\n * Creates instance of `ObjectiveChanger` based on the given device.\n * If the device is identified, this constructor will ensure it is an objective changer.\n */\n constructor(turret: Device, focusAxis: Axis) {\n this._turret = turret;\n this._focusAxis = focusAxis;\n this._verifyIsChanger();\n }\n\n /**\n * @deprecated Use microscope's `Find` method instead or instantiate manually.\n *\n * Finds an objective changer on a connection.\n * In case of conflict, specify the optional device addresses.\n * Devices on the connection must be identified.\n * @param connection Connection on which to detect the objective changer.\n * @param [options.turretAddress=0] Optional device address of the turret device (X-MOR).\n * @param [options.focusAddress=0] Optional device address of the focus device (X-LDA).\n * @returns New instance of objective changer.\n */\n public static async find(\n connection: Connection,\n options: ObjectiveChanger.FindOptions = {}\n ): Promise<ObjectiveChanger> {\n const {\n turretAddress = 0,\n focusAddress = 0,\n } = options;\n const request: requests.ObjectiveChangerRequest & gateway.Message = {\n ...requests.ObjectiveChangerRequest.DEFAULT,\n interfaceId: connection.interfaceId,\n turretAddress: turretAddress,\n focusAddress: focusAddress,\n toBinary() {\n return requests.ObjectiveChangerRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.ObjectiveChangerCreateResponse>(\n 'objective_changer/detect',\n request,\n requests.ObjectiveChangerCreateResponse.fromBinary);\n return new ObjectiveChanger(new Device(connection, response.turret), new Axis(new Device(connection, response.focusAddress), response.focusAxis));\n }\n\n /**\n * Changes the objective.\n * Runs a sequence of movements switching from the current objective to the new one.\n * The focus stage moves to the focus datum after the objective change.\n * @param objective Objective number starting from 1.\n * @param options.focusOffset Optional offset from the focus datum.\n */\n public async change(\n objective: number,\n options: ObjectiveChanger.ChangeOptions = {}\n ): Promise<void> {\n const {\n focusOffset,\n } = options;\n const request: requests.ObjectiveChangerChangeRequest & gateway.Message = {\n ...requests.ObjectiveChangerChangeRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n objective: objective,\n focusOffset: focusOffset,\n toBinary() {\n return requests.ObjectiveChangerChangeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('objective_changer/change', request);\n }\n\n /**\n * Moves the focus stage out of the turret releasing the current objective.\n */\n public async release(): Promise<void> {\n const request: requests.ObjectiveChangerRequest & gateway.Message = {\n ...requests.ObjectiveChangerRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n toBinary() {\n return requests.ObjectiveChangerRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('objective_changer/release', request);\n }\n\n /**\n * Returns current objective number starting from 1.\n * The value of 0 indicates that the position is either unknown or between two objectives.\n * @returns Current objective number starting from 1 or 0 if not applicable.\n */\n public async getCurrentObjective(): Promise<number> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n device: this.turret.deviceAddress,\n axis: 1,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'device/get_index_position',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets number of objectives that the turret can accommodate.\n * @returns Number of positions.\n */\n public async getNumberOfObjectives(): Promise<number> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n device: this.turret.deviceAddress,\n axis: 1,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'device/get_index_count',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets the focus datum.\n * The focus datum is the position that the focus stage moves to after an objective change.\n * It is backed by the limit.home.offset setting.\n * @param [unit=Units.NATIVE] Units of datum.\n * @returns The datum.\n */\n public async getFocusDatum(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request: requests.ObjectiveChangerSetRequest & gateway.Message = {\n ...requests.ObjectiveChangerSetRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n unit: unit,\n toBinary() {\n return requests.ObjectiveChangerSetRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'objective_changer/get_datum',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets the focus datum.\n * The focus datum is the position that the focus stage moves to after an objective change.\n * It is backed by the limit.home.offset setting.\n * @param datum Value of datum.\n * @param [unit=Units.NATIVE] Units of datum.\n */\n public async setFocusDatum(\n datum: number,\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<void> {\n const request: requests.ObjectiveChangerSetRequest & gateway.Message = {\n ...requests.ObjectiveChangerSetRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n value: datum,\n unit: unit,\n toBinary() {\n return requests.ObjectiveChangerSetRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('objective_changer/set_datum', request);\n }\n\n /**\n * Checks if this is a objective changer and throws an error if it is not.\n */\n private _verifyIsChanger(): void {\n const request: requests.ObjectiveChangerRequest & gateway.Message = {\n ...requests.ObjectiveChangerRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n toBinary() {\n return requests.ObjectiveChangerRequest.toBinary(this);\n },\n };\n\n gateway.callSync('objective_changer/verify', request);\n }\n\n /**\n * Returns a string that represents the device.\n * @returns A string that represents the device.\n */\n public toString(): string {\n const request: requests.AxisToStringRequest & gateway.Message = {\n ...requests.AxisToStringRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n device: this.turret.deviceAddress,\n toBinary() {\n return requests.AxisToStringRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/device_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n}\n\nnamespace ObjectiveChanger {\n export interface FindOptions {\n /**\n * Optional device address of the turret device (X-MOR).\n */\n turretAddress?: number;\n /**\n * Optional device address of the focus device (X-LDA).\n */\n focusAddress?: number;\n }\n export interface ChangeOptions {\n /**\n * Optional offset from the focus datum.\n */\n focusOffset?: Measurement;\n }\n}\n"]}
1
+ {"version":3,"file":"objective_changer.js","sourceRoot":"","sources":["../../../src/microscopy/objective_changer.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAItC,sDAAwC;AACxC,oCAAwD;AAExD;;;;GAIG;AACH,MAAa,gBAAgB;IAC3B;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAGD;;;OAGG;IACH,YAAY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AClE,GAAG,QAAQ,CAAC,uBAAuB,CAAC,OAAO;YAC3C,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACxC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa;YACjD,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU;YACpC,QAAQ;gBACN,OAAO,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACzD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;OAGG;IACI,QAAQ;QACb,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,yBAAyB,EACzB,OAAO,EACP,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;CACF;AAtND,4CAsNC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { Device } from '../ascii/device';\nimport { Axis } from '../ascii/axis';\nimport { Measurement } from '../measurement';\nimport * as requests from '../requests';\nimport { Angle, Length, Native, Units } from '../units';\n\n/**\n * Represents an objective changer of a microscope.\n * Unstable. Expect breaking changes in future releases.\n * Requires at least Firmware 7.32.\n */\nexport class ObjectiveChanger {\n /**\n * Device address of the turret.\n */\n public get turret(): Device {\n return this._turret;\n }\n private _turret: Device;\n\n /**\n * The focus axis.\n */\n public get focusAxis(): Axis {\n return this._focusAxis;\n }\n private _focusAxis: Axis;\n\n /**\n * Creates instance of `ObjectiveChanger` based on the given device.\n * If the device is identified, this constructor will ensure it is an objective changer.\n */\n constructor(turret: Device, focusAxis: Axis) {\n this._turret = turret;\n this._focusAxis = focusAxis;\n this._verifyIsChanger();\n }\n\n /**\n * Changes the objective.\n * Runs a sequence of movements switching from the current objective to the new one.\n * The focus stage moves to the focus datum after the objective change.\n * @param objective Objective number starting from 1.\n * @param options.focusOffset Optional offset from the focus datum.\n */\n public async change(\n objective: number,\n options: ObjectiveChanger.ChangeOptions = {}\n ): Promise<void> {\n const {\n focusOffset,\n } = options;\n const request: requests.ObjectiveChangerChangeRequest & gateway.Message = {\n ...requests.ObjectiveChangerChangeRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n objective: objective,\n focusOffset: focusOffset,\n toBinary() {\n return requests.ObjectiveChangerChangeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('objective_changer/change', request);\n }\n\n /**\n * Moves the focus stage out of the turret releasing the current objective.\n */\n public async release(): Promise<void> {\n const request: requests.ObjectiveChangerRequest & gateway.Message = {\n ...requests.ObjectiveChangerRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n toBinary() {\n return requests.ObjectiveChangerRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('objective_changer/release', request);\n }\n\n /**\n * Returns current objective number starting from 1.\n * The value of 0 indicates that the position is either unknown or between two objectives.\n * @returns Current objective number starting from 1 or 0 if not applicable.\n */\n public async getCurrentObjective(): Promise<number> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n device: this.turret.deviceAddress,\n axis: 1,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'device/get_index_position',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets number of objectives that the turret can accommodate.\n * @returns Number of positions.\n */\n public async getNumberOfObjectives(): Promise<number> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n device: this.turret.deviceAddress,\n axis: 1,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'device/get_index_count',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets the focus datum.\n * The focus datum is the position that the focus stage moves to after an objective change.\n * It is backed by the limit.home.offset setting.\n * @param [unit=Units.NATIVE] Units of datum.\n * @returns The datum.\n */\n public async getFocusDatum(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request: requests.ObjectiveChangerSetRequest & gateway.Message = {\n ...requests.ObjectiveChangerSetRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n unit: unit,\n toBinary() {\n return requests.ObjectiveChangerSetRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'objective_changer/get_datum',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets the focus datum.\n * The focus datum is the position that the focus stage moves to after an objective change.\n * It is backed by the limit.home.offset setting.\n * @param datum Value of datum.\n * @param [unit=Units.NATIVE] Units of datum.\n */\n public async setFocusDatum(\n datum: number,\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<void> {\n const request: requests.ObjectiveChangerSetRequest & gateway.Message = {\n ...requests.ObjectiveChangerSetRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n value: datum,\n unit: unit,\n toBinary() {\n return requests.ObjectiveChangerSetRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('objective_changer/set_datum', request);\n }\n\n /**\n * Checks if this is a objective changer and throws an error if it is not.\n */\n private _verifyIsChanger(): void {\n const request: requests.ObjectiveChangerRequest & gateway.Message = {\n ...requests.ObjectiveChangerRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n turretAddress: this.turret.deviceAddress,\n focusAddress: this.focusAxis.device.deviceAddress,\n focusAxis: this.focusAxis.axisNumber,\n toBinary() {\n return requests.ObjectiveChangerRequest.toBinary(this);\n },\n };\n\n gateway.callSync('objective_changer/verify', request);\n }\n\n /**\n * Returns a string that represents the device.\n * @returns A string that represents the device.\n */\n public toString(): string {\n const request: requests.AxisToStringRequest & gateway.Message = {\n ...requests.AxisToStringRequest.DEFAULT,\n interfaceId: this.turret.connection.interfaceId,\n device: this.turret.deviceAddress,\n toBinary() {\n return requests.AxisToStringRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/device_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n}\n\nnamespace ObjectiveChanger {\n export interface ChangeOptions {\n /**\n * Optional offset from the focus datum.\n */\n focusOffset?: Measurement;\n }\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { BSON } from 'bson';
2
+ import { UnitConversionDescriptor } from '../unit_conversion_descriptor';
3
+ export interface GetCommandUnitConversionResponse {
4
+ value: (UnitConversionDescriptor | null)[];
5
+ }
6
+ export declare const GetCommandUnitConversionResponse: {
7
+ fromBinary: (buffer: Uint8Array) => GetCommandUnitConversionResponse;
8
+ toBinary: (value: GetCommandUnitConversionResponse) => Uint8Array;
9
+ DEFAULT: Readonly<GetCommandUnitConversionResponse>;
10
+ sanitize: (value: GetCommandUnitConversionResponse) => GetCommandUnitConversionResponse;
11
+ convert: (value: BSON.Document) => GetCommandUnitConversionResponse;
12
+ };
13
+ //# sourceMappingURL=get_command_unit_conversion_response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get_command_unit_conversion_response.d.ts","sourceRoot":"","sources":["../../../src/requests/get_command_unit_conversion_response.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,CAAC,wBAAwB,GAAG,IAAI,CAAC,EAAE,CAAC;CAE5C;AAED,eAAO,MAAM,gCAAgC;yBACtB,UAAU,KAAG,gCAAgC;sBAChD,gCAAgC,KAAG,UAAU;;sBAI7C,gCAAgC,KAAG,gCAAgC;qBAOpE,KAAK,QAAQ,KAAG,gCAAgC;CAGlE,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetCommandUnitConversionResponse = void 0;
4
+ /* This file is generated. Do not modify by hand. */
5
+ const bson_1 = require("bson");
6
+ const unit_conversion_descriptor_1 = require("../unit_conversion_descriptor");
7
+ exports.GetCommandUnitConversionResponse = {
8
+ fromBinary: (buffer) => exports.GetCommandUnitConversionResponse.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
9
+ toBinary: (value) => bson_1.BSON.serialize(exports.GetCommandUnitConversionResponse.sanitize(value)),
10
+ DEFAULT: Object.freeze({
11
+ value: [],
12
+ }),
13
+ sanitize: (value) => {
14
+ if (value == null) {
15
+ throw new TypeError('Expected GetCommandUnitConversionResponse object but got null or undefined.');
16
+ }
17
+ if (typeof value !== 'object') {
18
+ throw new TypeError(`Expected GetCommandUnitConversionResponse object but got ${typeof value}.`);
19
+ }
20
+ return {
21
+ value: Array.from(value.value ?? [], item => item != null ? unit_conversion_descriptor_1.UnitConversionDescriptor.sanitize(item) : null),
22
+ };
23
+ },
24
+ convert: (value) => ({
25
+ value: value.value,
26
+ })
27
+ };
28
+ //# sourceMappingURL=get_command_unit_conversion_response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get_command_unit_conversion_response.js","sourceRoot":"","sources":["../../../src/requests/get_command_unit_conversion_response.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,8EAAyE;AAO5D,QAAA,gCAAgC,GAAG;IAC9C,UAAU,EAAE,CAAC,MAAkB,EAAoC,EAAE,CAAC,wCAAgC,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/J,QAAQ,EAAE,CAAC,KAAuC,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,wCAAgC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACnI,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,EAAE;KACV,CAA+C;IAChD,QAAQ,EAAE,CAAC,KAAuC,EAAoC,EAAE;QACtF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,6EAA6E,CAAC,CAAA;QAAC,CAAC;QACzH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,4DAA4D,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QACnI,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,qDAAwB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;SAC5G,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAAoC,EAAE,CAAC,CAAC;QACpE,KAAK,EAAE,KAAK,CAAC,KAAK;KACnB,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { UnitConversionDescriptor } from '../unit_conversion_descriptor';\n\nexport interface GetCommandUnitConversionResponse {\n value: (UnitConversionDescriptor | null)[];\n\n}\n\nexport const GetCommandUnitConversionResponse = {\n fromBinary: (buffer: Uint8Array): GetCommandUnitConversionResponse => GetCommandUnitConversionResponse.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: GetCommandUnitConversionResponse): Uint8Array => BSON.serialize(GetCommandUnitConversionResponse.sanitize(value)),\n DEFAULT: Object.freeze({\n value: [],\n }) as Readonly<GetCommandUnitConversionResponse>,\n sanitize: (value: GetCommandUnitConversionResponse): GetCommandUnitConversionResponse => {\n if (value == null) { throw new TypeError('Expected GetCommandUnitConversionResponse object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected GetCommandUnitConversionResponse object but got ${typeof value}.`) }\n return {\n value: Array.from(value.value ?? [], item => item != null ? UnitConversionDescriptor.sanitize(item) : null),\n };\n },\n convert: (value: BSON.Document): GetCommandUnitConversionResponse => ({\n value: value.value,\n })\n};\n"]}
@@ -94,6 +94,7 @@ export * from './generic_command_request';
94
94
  export * from './generic_command_response_collection';
95
95
  export * from './get_all_io_port_labels_response';
96
96
  export * from './get_axis_setting_results';
97
+ export * from './get_command_unit_conversion_response';
97
98
  export * from './get_io_port_label_request';
98
99
  export * from './get_setting_results';
99
100
  export * from './get_simple_tuning_param_definition_response';
@@ -241,6 +242,7 @@ export * from './trigger_on_fire_set_request';
241
242
  export * from './trigger_on_fire_set_to_setting_request';
242
243
  export * from './trigger_set_label_request';
243
244
  export * from './trigger_states';
245
+ export * from './unit_convert_native_request';
244
246
  export * from './unit_convert_unit_request';
245
247
  export * from './unit_get_enum_request';
246
248
  export * from './unit_get_enum_response';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC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A0C,CAAC;AACzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
@@ -111,6 +111,7 @@ __exportStar(require("./generic_command_request"), exports);
111
111
  __exportStar(require("./generic_command_response_collection"), exports);
112
112
  __exportStar(require("./get_all_io_port_labels_response"), exports);
113
113
  __exportStar(require("./get_axis_setting_results"), exports);
114
+ __exportStar(require("./get_command_unit_conversion_response"), exports);
114
115
  __exportStar(require("./get_io_port_label_request"), exports);
115
116
  __exportStar(require("./get_setting_results"), exports);
116
117
  __exportStar(require("./get_simple_tuning_param_definition_response"), exports);
@@ -258,6 +259,7 @@ __exportStar(require("./trigger_on_fire_set_request"), exports);
258
259
  __exportStar(require("./trigger_on_fire_set_to_setting_request"), exports);
259
260
  __exportStar(require("./trigger_set_label_request"), exports);
260
261
  __exportStar(require("./trigger_states"), exports);
262
+ __exportStar(require("./unit_convert_native_request"), exports);
261
263
  __exportStar(require("./unit_convert_unit_request"), exports);
262
264
  __exportStar(require("./unit_get_enum_request"), exports);
263
265
  __exportStar(require("./unit_get_enum_response"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,wDAAsC;AACtC,4DAA0C;AAC1C,2EAAyD;AACzD,4EAA0D;AAC1D,kEAAgD;AAChD,2EAAyD;AACzD,uDAAq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is generated. Do not modify by hand. */\nexport * from './alert_event_wrapper';\nexport * from './autofocus_focus_request';\nexport * from './autofocus_get_objective_params_request';\nexport * from './autofocus_get_objective_params_response';\nexport * from './autofocus_get_status_response';\nexport * from './autofocus_set_objective_params_request';\nexport * from './axes_empty_request';\nexport * from './axes_get_setting_request';\nexport * from './axes_move_request';\nexport * from './axis_empty_request';\nexport * from './axis_move_type';\nexport * from './axis_to_string_request';\nexport * from './binary_device_detect_request';\nexport * from './binary_device_detect_response';\nexport * from './binary_device_get_setting_request';\nexport * from './binary_device_home_request';\nexport * from './binary_device_move_request';\nexport * from './binary_device_set_setting_request';\nexport * from './binary_device_stop_request';\nexport * from './binary_generic_with_units_request';\nexport * from './binary_message_collection';\nexport * from './binary_reply_only_event_wrapper';\nexport * from './bool_response';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_request';\nexport * from './channel_on';\nexport * from './channel_set_intensity';\nexport * from './check_version_request';\nexport * from './custom_interface_close_request';\nexport * from './custom_interface_open_response';\nexport * from './custom_interface_read_request';\nexport * from './custom_interface_write_request';\nexport * from './device_cancel_all_outputs_schedule_request';\nexport * from './device_cancel_output_schedule_request';\nexport * from './device_convert_setting_request';\nexport * from './device_detect_request';\nexport * from './device_detect_response';\nexport * from './device_empty_request';\nexport * from './device_get_all_analog_io_request';\nexport * from './device_get_all_analog_io_response';\nexport * from './device_get_all_digital_io_request';\nexport * from './device_get_all_digital_io_response';\nexport * from './device_get_analog_io_request';\nexport * from './device_get_digital_io_request';\nexport * from './device_get_setting_request';\nexport * from './device_get_storage_request';\nexport * from './device_get_warnings_request';\nexport * from './device_get_warnings_response';\nexport * from './device_home_request';\nexport * from './device_identify_request';\nexport * from './device_move_request';\nexport * from './device_move_sin_request';\nexport * from './device_multi_get_setting_request';\nexport * from './device_on_all_request';\nexport * from './device_on_all_response';\nexport * from './device_restore_request';\nexport * from './device_set_all_analog_outputs_request';\nexport * from './device_set_all_analog_outputs_schedule_request';\nexport * from './device_set_all_digital_outputs_request';\nexport * from './device_set_all_digital_outputs_schedule_request';\nexport * from './device_set_analog_output_request';\nexport * from './device_set_analog_output_schedule_request';\nexport * from './device_set_digital_output_request';\nexport * from './device_set_digital_output_schedule_request';\nexport * from './device_set_lowpass_filter_request';\nexport * from './device_set_setting_bool_request';\nexport * from './device_set_setting_int_request';\nexport * from './device_set_setting_request';\nexport * from './device_set_setting_str_request';\nexport * from './device_set_storage_bool_request';\nexport * from './device_set_storage_number_request';\nexport * from './device_set_storage_request';\nexport * from './device_set_unit_conversions_request';\nexport * from './device_stop_request';\nexport * from './device_storage_list_keys_request';\nexport * from './device_storage_request';\nexport * from './device_type';\nexport * from './device_wait_until_idle_request';\nexport * from './disconnected_event';\nexport * from './double_array_response';\nexport * from './double_response';\nexport * from './driver_enable_request';\nexport * from './empty_autofocus_request';\nexport * from './empty_request';\nexport * from './errors';\nexport * from './find_device_request';\nexport * from './find_device_response';\nexport * from './forget_devices_request';\nexport * from './gateway_event';\nexport * from './gateway_request';\nexport * from './gateway_response';\nexport * from './generic_binary_request';\nexport * from './generic_command_request';\nexport * from './generic_command_response_collection';\nexport * from './get_all_io_port_labels_response';\nexport * from './get_axis_setting_results';\nexport * from './get_io_port_label_request';\nexport * from './get_setting_results';\nexport * from './get_simple_tuning_param_definition_response';\nexport * from './int_64_response';\nexport * from './int_array_response';\nexport * from './int_request';\nexport * from './int_response';\nexport * from './interface_empty_request';\nexport * from './interface_type';\nexport * from './load_paramset';\nexport * from './lockstep_disable_request';\nexport * from './lockstep_empty_request';\nexport * from './lockstep_enable_request';\nexport * from './lockstep_get_axis_numbers_response';\nexport * from './lockstep_get_request';\nexport * from './lockstep_home_request';\nexport * from './lockstep_move_request';\nexport * from './lockstep_move_sin_request';\nexport * from './lockstep_set_request';\nexport * from './lockstep_stop_request';\nexport * from './lockstep_wait_until_idle_request';\nexport * from './microscope_config_response';\nexport * from './microscope_empty_request';\nexport * from './microscope_find_request';\nexport * from './microscope_init_request';\nexport * from './microscope_trigger_camera_request';\nexport * from './objective_changer_change_request';\nexport * from './objective_changer_create_response';\nexport * from './objective_changer_get_current_response';\nexport * from './objective_changer_request';\nexport * from './objective_changer_set_request';\nexport * from './open_binary_interface_request';\nexport * from './open_interface_request';\nexport * from './open_interface_response';\nexport * from './oscilloscope_add_io_channel_request';\nexport * from './oscilloscope_add_setting_channel_request';\nexport * from './oscilloscope_data_get_request';\nexport * from './oscilloscope_data_get_sample_time_request';\nexport * from './oscilloscope_data_get_samples_response';\nexport * from './oscilloscope_data_identifier';\nexport * from './oscilloscope_read_response';\nexport * from './oscilloscope_request';\nexport * from './oscilloscope_start_request';\nexport * from './prepare_command_request';\nexport * from './process_on';\nexport * from './pvt_buffer_get_sequence_data_request';\nexport * from './pvt_csv_request';\nexport * from './pvt_generate_positions_request';\nexport * from './pvt_generate_velocities_and_times_request';\nexport * from './pvt_generate_velocities_request';\nexport * from './pvt_load_csv_request';\nexport * from './pvt_point_request';\nexport * from './pvt_points_request';\nexport * from './pvt_save_csv_request';\nexport * from './pvt_submit_sequence_data_request';\nexport * from './renumber_request';\nexport * from './response_type';\nexport * from './servo_tuning_paramset_response';\nexport * from './servo_tuning_request';\nexport * from './set_device_db_layered_sources_request';\nexport * from './set_device_db_source_request';\nexport * from './set_interface_checksum_enabled_request';\nexport * from './set_interface_timeout_request';\nexport * from './set_internal_mode_request';\nexport * from './set_io_port_label_request';\nexport * from './set_log_output_request';\nexport * from './set_process_controller_source';\nexport * from './set_servo_tuning_pid_request';\nexport * from './set_servo_tuning_request';\nexport * from './set_simple_tuning';\nexport * from './set_state_request';\nexport * from './stream_arc_request';\nexport * from './stream_buffer_erase_request';\nexport * from './stream_buffer_get_content_request';\nexport * from './stream_buffer_get_content_response';\nexport * from './stream_buffer_list';\nexport * from './stream_call_request';\nexport * from './stream_cancel_all_outputs_schedule_request';\nexport * from './stream_cancel_output_schedule_request';\nexport * from './stream_circle_request';\nexport * from './stream_empty_request';\nexport * from './stream_generic_command_batch_request';\nexport * from './stream_generic_command_request';\nexport * from './stream_get_axes_response';\nexport * from './stream_get_max_centripetal_acceleration_request';\nexport * from './stream_get_max_speed_request';\nexport * from './stream_get_max_tangential_acceleration_request';\nexport * from './stream_line_request';\nexport * from './stream_mode_response';\nexport * from './stream_segment_type';\nexport * from './stream_set_all_analog_outputs_request';\nexport * from './stream_set_all_analog_outputs_schedule_request';\nexport * from './stream_set_all_digital_outputs_request';\nexport * from './stream_set_all_digital_outputs_schedule_request';\nexport * from './stream_set_analog_output_request';\nexport * from './stream_set_analog_output_schedule_request';\nexport * from './stream_set_digital_output_request';\nexport * from './stream_set_digital_output_schedule_request';\nexport * from './stream_set_hold_request';\nexport * from './stream_set_max_centripetal_acceleration_request';\nexport * from './stream_set_max_speed_request';\nexport * from './stream_set_max_tangential_acceleration_request';\nexport * from './stream_setup_live_composite_request';\nexport * from './stream_setup_live_request';\nexport * from './stream_setup_store_arbitrary_axes_request';\nexport * from './stream_setup_store_composite_request';\nexport * from './stream_setup_store_request';\nexport * from './stream_wait_analog_input_request';\nexport * from './stream_wait_digital_input_request';\nexport * from './stream_wait_request';\nexport * from './stream_wait_until_idle_request';\nexport * from './string_array_response';\nexport * from './string_response';\nexport * from './test_event';\nexport * from './test_request';\nexport * from './test_request_complex';\nexport * from './test_response';\nexport * from './test_response_long';\nexport * from './toggle_device_db_store_request';\nexport * from './tools_list_serial_ports_response';\nexport * from './translator_create_from_device_request';\nexport * from './translator_create_live_request';\nexport * from './translator_create_request';\nexport * from './translator_create_response';\nexport * from './translator_empty_request';\nexport * from './translator_flush_live_request';\nexport * from './translator_flush_response';\nexport * from './translator_get_axis_offset_request';\nexport * from './translator_get_axis_position_request';\nexport * from './translator_set_axis_position_request';\nexport * from './translator_set_feed_rate_override_request';\nexport * from './translator_set_traverse_rate_request';\nexport * from './translator_translate_request';\nexport * from './trigger_clear_action_request';\nexport * from './trigger_empty_request';\nexport * from './trigger_enable_request';\nexport * from './trigger_enabled_states';\nexport * from './trigger_fire_at_interval_request';\nexport * from './trigger_fire_when_distance_travelled_request';\nexport * from './trigger_fire_when_io_request';\nexport * from './trigger_fire_when_request';\nexport * from './trigger_fire_when_setting_request';\nexport * from './trigger_on_fire_request';\nexport * from './trigger_on_fire_set_request';\nexport * from './trigger_on_fire_set_to_setting_request';\nexport * from './trigger_set_label_request';\nexport * from './trigger_states';\nexport * from './unit_convert_unit_request';\nexport * from './unit_get_enum_request';\nexport * from './unit_get_enum_response';\nexport * from './unit_get_symbol_request';\nexport * from './unit_get_symbol_response';\nexport * from './unknown_binary_response_event_wrapper';\nexport * from './unknown_response_event_wrapper';\nexport * from './wait_to_clear_warnings_request';\nexport * from './wait_to_respond_request';\nexport * from './wdi_generic_float_request';\nexport * from './wdi_generic_request';\nexport * from './wdi_get_status_response';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,wDAAsC;AACtC,4DAA0C;AAC1C,2EAAyD;AACzD,4EAA0D;AAC1D,kEAAgD;AAChD,2EAAyD;AACzD,uDAAqC;AACrC,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,mDAAiC;AACjC,2DAAyC;AACzC,iEAA+C;AAC/C,kEAAgD;AAChD,sEAAoD;AACpD,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,oEAAkD;AAClD,kDAAgC;AAChC,gEAA8C;AAC9C,0DAAwC;AACxC,+CAA6B;AAC7B,0DAAwC;AACxC,0DAAwC;AACxC,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,mEAAiD;AACjD,+EAA6D;AAC7D,0EAAwD;AACxD,mEAAiD;AACjD,0DAAwC;AACxC,2DAAyC;AACzC,yDAAuC;AACvC,qEAAmD;AACnD,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,iEAA+C;AAC/C,kEAAgD;AAChD,+D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;AAC7B,iDAA+B;AAC/B,yDAAuC;AACvC,kDAAgC;AAChC,uDAAqC;AACrC,mEAAiD;AACjD,qEAAmD;AACnD,0EAAwD;AACxD,mEAAiD;AACjD,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,8DAA4C;AAC5C,uEAAqD;AACrD,yEAAuD;AACvD,yEAAuD;AACvD,8EAA4D;AAC5D,yEAAuD;AACvD,iEAA+C;AAC/C,iEAA+C;AAC/C,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,qEAAmD;AACnD,iFAA+D;AAC/D,iEAA+C;AAC/C,8DAA4C;AAC5C,sEAAoD;AACpD,4DAA0C;AAC1C,gEAA8C;AAC9C,2EAAyD;AACzD,8DAA4C;AAC5C,mDAAiC;AACjC,gEAA8C;AAC9C,8DAA4C;AAC5C,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0EAAwD;AACxD,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C;AAC1C,8DAA4C;AAC5C,wDAAsC;AACtC,4DAA0C","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event_wrapper';\nexport * from './autofocus_focus_request';\nexport * from './autofocus_get_objective_params_request';\nexport * from './autofocus_get_objective_params_response';\nexport * from './autofocus_get_status_response';\nexport * from './autofocus_set_objective_params_request';\nexport * from './axes_empty_request';\nexport * from './axes_get_setting_request';\nexport * from './axes_move_request';\nexport * from './axis_empty_request';\nexport * from './axis_move_type';\nexport * from './axis_to_string_request';\nexport * from './binary_device_detect_request';\nexport * from './binary_device_detect_response';\nexport * from './binary_device_get_setting_request';\nexport * from './binary_device_home_request';\nexport * from './binary_device_move_request';\nexport * from './binary_device_set_setting_request';\nexport * from './binary_device_stop_request';\nexport * from './binary_generic_with_units_request';\nexport * from './binary_message_collection';\nexport * from './binary_reply_only_event_wrapper';\nexport * from './bool_response';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_request';\nexport * from './channel_on';\nexport * from './channel_set_intensity';\nexport * from './check_version_request';\nexport * from './custom_interface_close_request';\nexport * from './custom_interface_open_response';\nexport * from './custom_interface_read_request';\nexport * from './custom_interface_write_request';\nexport * from './device_cancel_all_outputs_schedule_request';\nexport * from './device_cancel_output_schedule_request';\nexport * from './device_convert_setting_request';\nexport * from './device_detect_request';\nexport * from './device_detect_response';\nexport * from './device_empty_request';\nexport * from './device_get_all_analog_io_request';\nexport * from './device_get_all_analog_io_response';\nexport * from './device_get_all_digital_io_request';\nexport * from './device_get_all_digital_io_response';\nexport * from './device_get_analog_io_request';\nexport * from './device_get_digital_io_request';\nexport * from './device_get_setting_request';\nexport * from './device_get_storage_request';\nexport * from './device_get_warnings_request';\nexport * from './device_get_warnings_response';\nexport * from './device_home_request';\nexport * from './device_identify_request';\nexport * from './device_move_request';\nexport * from './device_move_sin_request';\nexport * from './device_multi_get_setting_request';\nexport * from './device_on_all_request';\nexport * from './device_on_all_response';\nexport * from './device_restore_request';\nexport * from './device_set_all_analog_outputs_request';\nexport * from './device_set_all_analog_outputs_schedule_request';\nexport * from './device_set_all_digital_outputs_request';\nexport * from './device_set_all_digital_outputs_schedule_request';\nexport * from './device_set_analog_output_request';\nexport * from './device_set_analog_output_schedule_request';\nexport * from './device_set_digital_output_request';\nexport * from './device_set_digital_output_schedule_request';\nexport * from './device_set_lowpass_filter_request';\nexport * from './device_set_setting_bool_request';\nexport * from './device_set_setting_int_request';\nexport * from './device_set_setting_request';\nexport * from './device_set_setting_str_request';\nexport * from './device_set_storage_bool_request';\nexport * from './device_set_storage_number_request';\nexport * from './device_set_storage_request';\nexport * from './device_set_unit_conversions_request';\nexport * from './device_stop_request';\nexport * from './device_storage_list_keys_request';\nexport * from './device_storage_request';\nexport * from './device_type';\nexport * from './device_wait_until_idle_request';\nexport * from './disconnected_event';\nexport * from './double_array_response';\nexport * from './double_response';\nexport * from './driver_enable_request';\nexport * from './empty_autofocus_request';\nexport * from './empty_request';\nexport * from './errors';\nexport * from './find_device_request';\nexport * from './find_device_response';\nexport * from './forget_devices_request';\nexport * from './gateway_event';\nexport * from './gateway_request';\nexport * from './gateway_response';\nexport * from './generic_binary_request';\nexport * from './generic_command_request';\nexport * from './generic_command_response_collection';\nexport * from './get_all_io_port_labels_response';\nexport * from './get_axis_setting_results';\nexport * from './get_command_unit_conversion_response';\nexport * from './get_io_port_label_request';\nexport * from './get_setting_results';\nexport * from './get_simple_tuning_param_definition_response';\nexport * from './int_64_response';\nexport * from './int_array_response';\nexport * from './int_request';\nexport * from './int_response';\nexport * from './interface_empty_request';\nexport * from './interface_type';\nexport * from './load_paramset';\nexport * from './lockstep_disable_request';\nexport * from './lockstep_empty_request';\nexport * from './lockstep_enable_request';\nexport * from './lockstep_get_axis_numbers_response';\nexport * from './lockstep_get_request';\nexport * from './lockstep_home_request';\nexport * from './lockstep_move_request';\nexport * from './lockstep_move_sin_request';\nexport * from './lockstep_set_request';\nexport * from './lockstep_stop_request';\nexport * from './lockstep_wait_until_idle_request';\nexport * from './microscope_config_response';\nexport * from './microscope_empty_request';\nexport * from './microscope_find_request';\nexport * from './microscope_init_request';\nexport * from './microscope_trigger_camera_request';\nexport * from './objective_changer_change_request';\nexport * from './objective_changer_create_response';\nexport * from './objective_changer_get_current_response';\nexport * from './objective_changer_request';\nexport * from './objective_changer_set_request';\nexport * from './open_binary_interface_request';\nexport * from './open_interface_request';\nexport * from './open_interface_response';\nexport * from './oscilloscope_add_io_channel_request';\nexport * from './oscilloscope_add_setting_channel_request';\nexport * from './oscilloscope_data_get_request';\nexport * from './oscilloscope_data_get_sample_time_request';\nexport * from './oscilloscope_data_get_samples_response';\nexport * from './oscilloscope_data_identifier';\nexport * from './oscilloscope_read_response';\nexport * from './oscilloscope_request';\nexport * from './oscilloscope_start_request';\nexport * from './prepare_command_request';\nexport * from './process_on';\nexport * from './pvt_buffer_get_sequence_data_request';\nexport * from './pvt_csv_request';\nexport * from './pvt_generate_positions_request';\nexport * from './pvt_generate_velocities_and_times_request';\nexport * from './pvt_generate_velocities_request';\nexport * from './pvt_load_csv_request';\nexport * from './pvt_point_request';\nexport * from './pvt_points_request';\nexport * from './pvt_save_csv_request';\nexport * from './pvt_submit_sequence_data_request';\nexport * from './renumber_request';\nexport * from './response_type';\nexport * from './servo_tuning_paramset_response';\nexport * from './servo_tuning_request';\nexport * from './set_device_db_layered_sources_request';\nexport * from './set_device_db_source_request';\nexport * from './set_interface_checksum_enabled_request';\nexport * from './set_interface_timeout_request';\nexport * from './set_internal_mode_request';\nexport * from './set_io_port_label_request';\nexport * from './set_log_output_request';\nexport * from './set_process_controller_source';\nexport * from './set_servo_tuning_pid_request';\nexport * from './set_servo_tuning_request';\nexport * from './set_simple_tuning';\nexport * from './set_state_request';\nexport * from './stream_arc_request';\nexport * from './stream_buffer_erase_request';\nexport * from './stream_buffer_get_content_request';\nexport * from './stream_buffer_get_content_response';\nexport * from './stream_buffer_list';\nexport * from './stream_call_request';\nexport * from './stream_cancel_all_outputs_schedule_request';\nexport * from './stream_cancel_output_schedule_request';\nexport * from './stream_circle_request';\nexport * from './stream_empty_request';\nexport * from './stream_generic_command_batch_request';\nexport * from './stream_generic_command_request';\nexport * from './stream_get_axes_response';\nexport * from './stream_get_max_centripetal_acceleration_request';\nexport * from './stream_get_max_speed_request';\nexport * from './stream_get_max_tangential_acceleration_request';\nexport * from './stream_line_request';\nexport * from './stream_mode_response';\nexport * from './stream_segment_type';\nexport * from './stream_set_all_analog_outputs_request';\nexport * from './stream_set_all_analog_outputs_schedule_request';\nexport * from './stream_set_all_digital_outputs_request';\nexport * from './stream_set_all_digital_outputs_schedule_request';\nexport * from './stream_set_analog_output_request';\nexport * from './stream_set_analog_output_schedule_request';\nexport * from './stream_set_digital_output_request';\nexport * from './stream_set_digital_output_schedule_request';\nexport * from './stream_set_hold_request';\nexport * from './stream_set_max_centripetal_acceleration_request';\nexport * from './stream_set_max_speed_request';\nexport * from './stream_set_max_tangential_acceleration_request';\nexport * from './stream_setup_live_composite_request';\nexport * from './stream_setup_live_request';\nexport * from './stream_setup_store_arbitrary_axes_request';\nexport * from './stream_setup_store_composite_request';\nexport * from './stream_setup_store_request';\nexport * from './stream_wait_analog_input_request';\nexport * from './stream_wait_digital_input_request';\nexport * from './stream_wait_request';\nexport * from './stream_wait_until_idle_request';\nexport * from './string_array_response';\nexport * from './string_response';\nexport * from './test_event';\nexport * from './test_request';\nexport * from './test_request_complex';\nexport * from './test_response';\nexport * from './test_response_long';\nexport * from './toggle_device_db_store_request';\nexport * from './tools_list_serial_ports_response';\nexport * from './translator_create_from_device_request';\nexport * from './translator_create_live_request';\nexport * from './translator_create_request';\nexport * from './translator_create_response';\nexport * from './translator_empty_request';\nexport * from './translator_flush_live_request';\nexport * from './translator_flush_response';\nexport * from './translator_get_axis_offset_request';\nexport * from './translator_get_axis_position_request';\nexport * from './translator_set_axis_position_request';\nexport * from './translator_set_feed_rate_override_request';\nexport * from './translator_set_traverse_rate_request';\nexport * from './translator_translate_request';\nexport * from './trigger_clear_action_request';\nexport * from './trigger_empty_request';\nexport * from './trigger_enable_request';\nexport * from './trigger_enabled_states';\nexport * from './trigger_fire_at_interval_request';\nexport * from './trigger_fire_when_distance_travelled_request';\nexport * from './trigger_fire_when_io_request';\nexport * from './trigger_fire_when_request';\nexport * from './trigger_fire_when_setting_request';\nexport * from './trigger_on_fire_request';\nexport * from './trigger_on_fire_set_request';\nexport * from './trigger_on_fire_set_to_setting_request';\nexport * from './trigger_set_label_request';\nexport * from './trigger_states';\nexport * from './unit_convert_native_request';\nexport * from './unit_convert_unit_request';\nexport * from './unit_get_enum_request';\nexport * from './unit_get_enum_response';\nexport * from './unit_get_symbol_request';\nexport * from './unit_get_symbol_response';\nexport * from './unknown_binary_response_event_wrapper';\nexport * from './unknown_response_event_wrapper';\nexport * from './wait_to_clear_warnings_request';\nexport * from './wait_to_respond_request';\nexport * from './wdi_generic_float_request';\nexport * from './wdi_generic_request';\nexport * from './wdi_get_status_response';\n"]}
@@ -7,10 +7,10 @@ export interface SetSimpleTuning {
7
7
  device: number;
8
8
  axis: number;
9
9
  paramset: ServoTuningParamset;
10
- loadMass: number;
11
- loadMassUnits: Units;
12
- carriageMass?: (number | null);
13
- carriageMassUnits: Units;
10
+ loadInertia: number;
11
+ loadInertiaUnits: Units;
12
+ carriageInertia?: (number | null);
13
+ carriageInertiaUnits: Units;
14
14
  motorInertia?: (number | null);
15
15
  motorInertiaUnits: Units;
16
16
  tuningParams: ServoTuningParam[];