@zaber/motion 2.5.1 → 2.7.0-save-load

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 (741) hide show
  1. package/binding.gyp +2 -3
  2. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  3. package/dist/{node → lib}/ascii/alert_event.d.ts +0 -0
  4. package/dist/{node → lib}/ascii/alert_event.js +0 -0
  5. package/dist/{node → lib}/ascii/alert_event.js.map +0 -0
  6. package/dist/{node → lib}/ascii/all_axes.d.ts +0 -0
  7. package/dist/{node → lib}/ascii/all_axes.js +0 -0
  8. package/dist/{node → lib}/ascii/all_axes.js.map +0 -0
  9. package/dist/{web → lib}/ascii/axis.d.ts +18 -0
  10. package/dist/{node → lib}/ascii/axis.js +40 -0
  11. package/dist/lib/ascii/axis.js.map +1 -0
  12. package/dist/{node → lib}/ascii/axis_identity.d.ts +0 -0
  13. package/dist/{node → lib}/ascii/axis_identity.js +0 -0
  14. package/dist/{node → lib}/ascii/axis_identity.js.map +0 -0
  15. package/dist/{node → lib}/ascii/axis_settings.d.ts +14 -0
  16. package/dist/{web → lib}/ascii/axis_settings.js +30 -0
  17. package/dist/lib/ascii/axis_settings.js.map +1 -0
  18. package/dist/{node → lib}/ascii/axis_type.d.ts +0 -0
  19. package/dist/{node → lib}/ascii/axis_type.js +0 -0
  20. package/dist/{node → lib}/ascii/axis_type.js.map +0 -0
  21. package/dist/{web → lib}/ascii/connection.d.ts +14 -2
  22. package/dist/{web → lib}/ascii/connection.js +22 -2
  23. package/dist/lib/ascii/connection.js.map +1 -0
  24. package/dist/{web → lib}/ascii/device.d.ts +20 -0
  25. package/dist/{node → lib}/ascii/device.js +40 -0
  26. package/dist/lib/ascii/device.js.map +1 -0
  27. package/dist/{node → lib}/ascii/device_identity.d.ts +0 -0
  28. package/dist/{node → lib}/ascii/device_identity.js +0 -0
  29. package/dist/{node → lib}/ascii/device_identity.js.map +0 -0
  30. package/dist/{node → lib}/ascii/device_io.d.ts +0 -0
  31. package/dist/{node → lib}/ascii/device_io.js +0 -0
  32. package/dist/{node → lib}/ascii/device_io.js.map +0 -0
  33. package/dist/{node → lib}/ascii/device_io_info.d.ts +0 -0
  34. package/dist/{node → lib}/ascii/device_io_info.js +0 -0
  35. package/dist/{node → lib}/ascii/device_io_info.js.map +0 -0
  36. package/dist/{web → lib}/ascii/device_settings.d.ts +14 -0
  37. package/dist/{web → lib}/ascii/device_settings.js +28 -0
  38. package/dist/lib/ascii/device_settings.js.map +1 -0
  39. package/dist/{node → lib}/ascii/index.d.ts +0 -0
  40. package/dist/{node → lib}/ascii/index.js +0 -0
  41. package/dist/{node → lib}/ascii/index.js.map +0 -0
  42. package/dist/{node → lib}/ascii/lockstep.d.ts +0 -0
  43. package/dist/{node → lib}/ascii/lockstep.js +0 -0
  44. package/dist/{node → lib}/ascii/lockstep.js.map +0 -0
  45. package/dist/{node → lib}/ascii/lockstep_axes.d.ts +0 -0
  46. package/dist/{node → lib}/ascii/lockstep_axes.js +0 -0
  47. package/dist/{node → lib}/ascii/lockstep_axes.js.map +0 -0
  48. package/dist/{node → lib}/ascii/message_type.d.ts +0 -0
  49. package/dist/{node → lib}/ascii/message_type.js +0 -0
  50. package/dist/{node → lib}/ascii/message_type.js.map +0 -0
  51. package/dist/{node → lib}/ascii/response.d.ts +0 -0
  52. package/dist/{node → lib}/ascii/response.js +0 -0
  53. package/dist/{node → lib}/ascii/response.js.map +0 -0
  54. package/dist/{web → lib}/ascii/setting_constants.d.ts +360 -0
  55. package/dist/{node → lib}/ascii/setting_constants.js +360 -0
  56. package/dist/lib/ascii/setting_constants.js.map +1 -0
  57. package/dist/{web → lib}/ascii/stream.d.ts +6 -0
  58. package/dist/{web → lib}/ascii/stream.js +13 -0
  59. package/dist/lib/ascii/stream.js.map +1 -0
  60. package/dist/{web → lib}/ascii/stream_axis_definition.d.ts +1 -1
  61. package/dist/{node → lib}/ascii/stream_axis_definition.js +0 -0
  62. package/dist/{node → lib}/ascii/stream_axis_definition.js.map +1 -1
  63. package/dist/{node → lib}/ascii/stream_axis_type.d.ts +0 -0
  64. package/dist/{node → lib}/ascii/stream_axis_type.js +0 -0
  65. package/dist/{node → lib}/ascii/stream_axis_type.js.map +0 -0
  66. package/dist/{node → lib}/ascii/stream_buffer.d.ts +1 -0
  67. package/dist/{node → lib}/ascii/stream_buffer.js +1 -0
  68. package/dist/lib/ascii/stream_buffer.js.map +1 -0
  69. package/dist/{node → lib}/ascii/stream_mode.d.ts +0 -0
  70. package/dist/{node → lib}/ascii/stream_mode.js +0 -0
  71. package/dist/{node → lib}/ascii/stream_mode.js.map +0 -0
  72. package/dist/{node → lib}/ascii/transport.d.ts +0 -0
  73. package/dist/{node → lib}/ascii/transport.js +0 -0
  74. package/dist/{node → lib}/ascii/transport.js.map +0 -0
  75. package/dist/{node → lib}/ascii/unknown_response_event.d.ts +0 -0
  76. package/dist/{node → lib}/ascii/unknown_response_event.js +0 -0
  77. package/dist/{node → lib}/ascii/unknown_response_event.js.map +0 -0
  78. package/dist/{node → lib}/ascii/warning_flags.d.ts +0 -0
  79. package/dist/{node → lib}/ascii/warning_flags.js +0 -0
  80. package/dist/{node → lib}/ascii/warning_flags.js.map +0 -0
  81. package/dist/{node → lib}/ascii/warnings.d.ts +0 -0
  82. package/dist/{node → lib}/ascii/warnings.js +0 -0
  83. package/dist/{node → lib}/ascii/warnings.js.map +0 -0
  84. package/dist/{node → lib}/ascii_ns.d.ts +0 -0
  85. package/dist/{node → lib}/ascii_ns.js +0 -0
  86. package/dist/{node → lib}/ascii_ns.js.map +0 -0
  87. package/dist/{node → lib}/binary/binary_settings.d.ts +0 -0
  88. package/dist/{node → lib}/binary/binary_settings.js +0 -0
  89. package/dist/{node → lib}/binary/binary_settings.js.map +0 -0
  90. package/dist/{node → lib}/binary/command_code.d.ts +0 -0
  91. package/dist/{node → lib}/binary/command_code.js +0 -0
  92. package/dist/{node → lib}/binary/command_code.js.map +0 -0
  93. package/dist/{node → lib}/binary/connection.d.ts +0 -1
  94. package/dist/{web → lib}/binary/connection.js +0 -1
  95. package/dist/lib/binary/connection.js.map +1 -0
  96. package/dist/{node → lib}/binary/device.d.ts +0 -0
  97. package/dist/{node → lib}/binary/device.js +0 -0
  98. package/dist/{node → lib}/binary/device.js.map +0 -0
  99. package/dist/{node → lib}/binary/device_identity.d.ts +0 -0
  100. package/dist/{node → lib}/binary/device_identity.js +0 -0
  101. package/dist/{node → lib}/binary/device_identity.js.map +0 -0
  102. package/dist/{node → lib}/binary/device_settings.d.ts +0 -0
  103. package/dist/{node → lib}/binary/device_settings.js +0 -0
  104. package/dist/{node → lib}/binary/device_settings.js.map +0 -0
  105. package/dist/{node → lib}/binary/device_type.d.ts +0 -0
  106. package/dist/{node → lib}/binary/device_type.js +0 -0
  107. package/dist/{node → lib}/binary/device_type.js.map +0 -0
  108. package/dist/{node → lib}/binary/error_code.d.ts +0 -0
  109. package/dist/{node → lib}/binary/error_code.js +0 -0
  110. package/dist/{node → lib}/binary/error_code.js.map +0 -0
  111. package/dist/{node → lib}/binary/index.d.ts +0 -0
  112. package/dist/{node → lib}/binary/index.js +0 -0
  113. package/dist/{node → lib}/binary/index.js.map +0 -0
  114. package/dist/{node → lib}/binary/message.d.ts +0 -0
  115. package/dist/{node → lib}/binary/message.js +0 -0
  116. package/dist/{node → lib}/binary/message.js.map +0 -0
  117. package/dist/{node → lib}/binary/reply_code.d.ts +0 -0
  118. package/dist/{node → lib}/binary/reply_code.js +0 -0
  119. package/dist/{node → lib}/binary/reply_code.js.map +0 -0
  120. package/dist/{node → lib}/binary/reply_only_event.d.ts +0 -0
  121. package/dist/{node → lib}/binary/reply_only_event.js +0 -0
  122. package/dist/{node → lib}/binary/reply_only_event.js.map +0 -0
  123. package/dist/{node → lib}/binary/unknown_response_event.d.ts +0 -0
  124. package/dist/{node → lib}/binary/unknown_response_event.js +0 -0
  125. package/dist/{node → lib}/binary/unknown_response_event.js.map +0 -0
  126. package/dist/{node → lib}/binary_ns.d.ts +0 -0
  127. package/dist/{node → lib}/binary_ns.js +0 -0
  128. package/dist/{node → lib}/binary_ns.js.map +0 -0
  129. package/dist/lib/can_set_state_axis_response.d.ts +16 -0
  130. package/dist/lib/can_set_state_axis_response.js +18 -0
  131. package/dist/lib/can_set_state_axis_response.js.map +1 -0
  132. package/dist/lib/can_set_state_device_response.d.ts +17 -0
  133. package/dist/lib/can_set_state_device_response.js +19 -0
  134. package/dist/lib/can_set_state_device_response.js.map +1 -0
  135. package/dist/{node → lib}/device_db_source_type.d.ts +0 -0
  136. package/dist/{node → lib}/device_db_source_type.js +0 -0
  137. package/dist/{node → lib}/device_db_source_type.js.map +0 -0
  138. package/dist/{node → lib}/exceptions/binary_command_failed_exception.d.ts +0 -0
  139. package/dist/{node → lib}/exceptions/binary_command_failed_exception.js +0 -0
  140. package/dist/{node → lib}/exceptions/binary_command_failed_exception.js.map +0 -0
  141. package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.d.ts +0 -0
  142. package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js +0 -0
  143. package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js.map +0 -0
  144. package/dist/{node → lib}/exceptions/command_failed_exception.d.ts +0 -0
  145. package/dist/{node → lib}/exceptions/command_failed_exception.js +0 -0
  146. package/dist/{node → lib}/exceptions/command_failed_exception.js.map +0 -0
  147. package/dist/{node → lib}/exceptions/command_failed_exception_data.d.ts +0 -0
  148. package/dist/{node → lib}/exceptions/command_failed_exception_data.js +0 -0
  149. package/dist/{node → lib}/exceptions/command_failed_exception_data.js.map +0 -0
  150. package/dist/{node → lib}/exceptions/command_preempted_exception.d.ts +0 -0
  151. package/dist/{node → lib}/exceptions/command_preempted_exception.js +0 -0
  152. package/dist/{node → lib}/exceptions/command_preempted_exception.js.map +0 -0
  153. package/dist/{node → lib}/exceptions/connection_closed_exception.d.ts +0 -0
  154. package/dist/{node → lib}/exceptions/connection_closed_exception.js +0 -0
  155. package/dist/{node → lib}/exceptions/connection_closed_exception.js.map +0 -0
  156. package/dist/{node → lib}/exceptions/connection_failed_exception.d.ts +0 -0
  157. package/dist/{node → lib}/exceptions/connection_failed_exception.js +0 -0
  158. package/dist/{node → lib}/exceptions/connection_failed_exception.js.map +0 -0
  159. package/dist/{node → lib}/exceptions/conversion_failed_exception.d.ts +0 -0
  160. package/dist/{node → lib}/exceptions/conversion_failed_exception.js +0 -0
  161. package/dist/{node → lib}/exceptions/conversion_failed_exception.js.map +0 -0
  162. package/dist/{node → lib}/exceptions/device_address_conflict_exception.d.ts +0 -0
  163. package/dist/{node → lib}/exceptions/device_address_conflict_exception.js +0 -0
  164. package/dist/{node → lib}/exceptions/device_address_conflict_exception.js.map +0 -0
  165. package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.d.ts +0 -0
  166. package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js +0 -0
  167. package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js.map +0 -0
  168. package/dist/{node → lib}/exceptions/device_busy_exception.d.ts +0 -0
  169. package/dist/{node → lib}/exceptions/device_busy_exception.js +0 -0
  170. package/dist/{node → lib}/exceptions/device_busy_exception.js.map +0 -0
  171. package/dist/{node → lib}/exceptions/device_db_failed_exception.d.ts +0 -0
  172. package/dist/{node → lib}/exceptions/device_db_failed_exception.js +0 -0
  173. package/dist/{node → lib}/exceptions/device_db_failed_exception.js.map +0 -0
  174. package/dist/{node → lib}/exceptions/device_failed_exception.d.ts +0 -0
  175. package/dist/{node → lib}/exceptions/device_failed_exception.js +0 -0
  176. package/dist/{node → lib}/exceptions/device_failed_exception.js.map +0 -0
  177. package/dist/{node → lib}/exceptions/device_not_identified_exception.d.ts +0 -0
  178. package/dist/{node → lib}/exceptions/device_not_identified_exception.js +0 -0
  179. package/dist/{node → lib}/exceptions/device_not_identified_exception.js.map +0 -0
  180. package/dist/lib/exceptions/g_code_execution_exception.d.ts +14 -0
  181. package/dist/lib/exceptions/g_code_execution_exception.js +32 -0
  182. package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -0
  183. package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +17 -0
  184. package/dist/lib/exceptions/g_code_execution_exception_data.js +18 -0
  185. package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -0
  186. package/dist/lib/exceptions/g_code_syntax_exception.d.ts +14 -0
  187. package/dist/lib/exceptions/g_code_syntax_exception.js +32 -0
  188. package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -0
  189. package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +17 -0
  190. package/dist/lib/exceptions/g_code_syntax_exception_data.js +18 -0
  191. package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -0
  192. package/dist/{web → lib}/exceptions/index.d.ts +8 -0
  193. package/dist/{node → lib}/exceptions/index.js +18 -1
  194. package/dist/lib/exceptions/index.js.map +1 -0
  195. package/dist/{node → lib}/exceptions/internal_error_exception.d.ts +0 -0
  196. package/dist/{node → lib}/exceptions/internal_error_exception.js +0 -0
  197. package/dist/{node → lib}/exceptions/internal_error_exception.js.map +0 -0
  198. package/dist/{node → lib}/exceptions/invalid_argument_exception.d.ts +0 -0
  199. package/dist/{node → lib}/exceptions/invalid_argument_exception.js +0 -0
  200. package/dist/{node → lib}/exceptions/invalid_argument_exception.js.map +0 -0
  201. package/dist/{node → lib}/exceptions/invalid_data_exception.d.ts +0 -0
  202. package/dist/{node → lib}/exceptions/invalid_data_exception.js +0 -0
  203. package/dist/{node → lib}/exceptions/invalid_data_exception.js.map +0 -0
  204. package/dist/{node → lib}/exceptions/invalid_packet_exception.d.ts +0 -0
  205. package/dist/{node → lib}/exceptions/invalid_packet_exception.js +0 -0
  206. package/dist/{node → lib}/exceptions/invalid_packet_exception.js.map +0 -0
  207. package/dist/{node → lib}/exceptions/invalid_packet_exception_data.d.ts +0 -0
  208. package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js +0 -0
  209. package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js.map +0 -0
  210. package/dist/{node → lib}/exceptions/invalid_park_state_exception.d.ts +0 -0
  211. package/dist/{node → lib}/exceptions/invalid_park_state_exception.js +0 -0
  212. package/dist/{node → lib}/exceptions/invalid_park_state_exception.js.map +0 -0
  213. package/dist/{node → lib}/exceptions/invalid_response_exception.d.ts +0 -0
  214. package/dist/{node → lib}/exceptions/invalid_response_exception.js +0 -0
  215. package/dist/{node → lib}/exceptions/invalid_response_exception.js.map +0 -0
  216. package/dist/{node → lib}/exceptions/invalid_response_exception_data.d.ts +0 -0
  217. package/dist/{node → lib}/exceptions/invalid_response_exception_data.js +0 -0
  218. package/dist/{node → lib}/exceptions/invalid_response_exception_data.js.map +0 -0
  219. package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.d.ts +0 -0
  220. package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js +0 -0
  221. package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js.map +0 -0
  222. package/dist/{node → lib}/exceptions/io_failed_exception.d.ts +0 -0
  223. package/dist/{node → lib}/exceptions/io_failed_exception.js +0 -0
  224. package/dist/{node → lib}/exceptions/io_failed_exception.js.map +0 -0
  225. package/dist/{node → lib}/exceptions/lockstep_enabled_exception.d.ts +0 -0
  226. package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js +0 -0
  227. package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js.map +0 -0
  228. package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.d.ts +0 -0
  229. package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js +0 -0
  230. package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js.map +0 -0
  231. package/dist/{node → lib}/exceptions/motion_lib_exception.d.ts +0 -0
  232. package/dist/{node → lib}/exceptions/motion_lib_exception.js +0 -0
  233. package/dist/{node → lib}/exceptions/motion_lib_exception.js.map +0 -0
  234. package/dist/{node → lib}/exceptions/movement_failed_exception.d.ts +0 -0
  235. package/dist/{node → lib}/exceptions/movement_failed_exception.js +0 -0
  236. package/dist/{node → lib}/exceptions/movement_failed_exception.js.map +0 -0
  237. package/dist/{node → lib}/exceptions/movement_failed_exception_data.d.ts +0 -0
  238. package/dist/{node → lib}/exceptions/movement_failed_exception_data.js +0 -0
  239. package/dist/{node → lib}/exceptions/movement_failed_exception_data.js.map +0 -0
  240. package/dist/{node → lib}/exceptions/movement_interrupted_exception.d.ts +0 -0
  241. package/dist/{node → lib}/exceptions/movement_interrupted_exception.js +0 -0
  242. package/dist/{node → lib}/exceptions/movement_interrupted_exception.js.map +0 -0
  243. package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.d.ts +0 -0
  244. package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js +0 -0
  245. package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js.map +0 -0
  246. package/dist/{node → lib}/exceptions/no_device_found_exception.d.ts +0 -0
  247. package/dist/{node → lib}/exceptions/no_device_found_exception.js +0 -0
  248. package/dist/{node → lib}/exceptions/no_device_found_exception.js.map +0 -0
  249. package/dist/{node → lib}/exceptions/not_supported_exception.d.ts +0 -0
  250. package/dist/{node → lib}/exceptions/not_supported_exception.js +0 -0
  251. package/dist/{node → lib}/exceptions/not_supported_exception.js.map +0 -0
  252. package/dist/{node → lib}/exceptions/os_failed_exception.d.ts +0 -0
  253. package/dist/{node → lib}/exceptions/os_failed_exception.js +0 -0
  254. package/dist/{node → lib}/exceptions/os_failed_exception.js.map +0 -0
  255. package/dist/{node → lib}/exceptions/out_of_request_ids_exception.d.ts +0 -0
  256. package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js +0 -0
  257. package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js.map +0 -0
  258. package/dist/{node → lib}/exceptions/request_timeout_exception.d.ts +0 -0
  259. package/dist/{node → lib}/exceptions/request_timeout_exception.js +0 -0
  260. package/dist/{node → lib}/exceptions/request_timeout_exception.js.map +0 -0
  261. package/dist/{node → lib}/exceptions/serial_port_busy_exception.d.ts +0 -0
  262. package/dist/{node → lib}/exceptions/serial_port_busy_exception.js +0 -0
  263. package/dist/{node → lib}/exceptions/serial_port_busy_exception.js.map +0 -0
  264. package/dist/lib/exceptions/set_device_state_exception_data.d.ts +25 -0
  265. package/dist/lib/exceptions/set_device_state_exception_data.js +21 -0
  266. package/dist/lib/exceptions/set_device_state_exception_data.js.map +1 -0
  267. package/dist/lib/exceptions/set_device_state_failed_exception.d.ts +14 -0
  268. package/dist/lib/exceptions/set_device_state_failed_exception.js +32 -0
  269. package/dist/lib/exceptions/set_device_state_failed_exception.js.map +1 -0
  270. package/dist/lib/exceptions/set_peripheral_state_exception_data.d.ts +20 -0
  271. package/dist/lib/exceptions/set_peripheral_state_exception_data.js +19 -0
  272. package/dist/lib/exceptions/set_peripheral_state_exception_data.js.map +1 -0
  273. package/dist/lib/exceptions/set_peripheral_state_failed_exception.d.ts +14 -0
  274. package/dist/lib/exceptions/set_peripheral_state_failed_exception.js +32 -0
  275. package/dist/lib/exceptions/set_peripheral_state_failed_exception.js.map +1 -0
  276. package/dist/{node → lib}/exceptions/setting_not_found_exception.d.ts +0 -0
  277. package/dist/{node → lib}/exceptions/setting_not_found_exception.js +0 -0
  278. package/dist/{node → lib}/exceptions/setting_not_found_exception.js.map +0 -0
  279. package/dist/{node → lib}/exceptions/stream_execution_exception.d.ts +0 -0
  280. package/dist/{node → lib}/exceptions/stream_execution_exception.js +0 -0
  281. package/dist/{node → lib}/exceptions/stream_execution_exception.js.map +0 -0
  282. package/dist/{node → lib}/exceptions/stream_execution_exception_data.d.ts +0 -0
  283. package/dist/{node → lib}/exceptions/stream_execution_exception_data.js +0 -0
  284. package/dist/{node → lib}/exceptions/stream_execution_exception_data.js.map +0 -0
  285. package/dist/{node → lib}/exceptions/stream_mode_exception.d.ts +0 -0
  286. package/dist/{node → lib}/exceptions/stream_mode_exception.js +0 -0
  287. package/dist/{node → lib}/exceptions/stream_mode_exception.js.map +0 -0
  288. package/dist/{node → lib}/exceptions/stream_movement_failed_exception.d.ts +0 -0
  289. package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js +0 -0
  290. package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js.map +0 -0
  291. package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.d.ts +0 -0
  292. package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js +0 -0
  293. package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js.map +0 -0
  294. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.d.ts +0 -0
  295. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js +0 -0
  296. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js.map +0 -0
  297. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -0
  298. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js +0 -0
  299. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js.map +0 -0
  300. package/dist/{node → lib}/exceptions/stream_setup_failed_exception.d.ts +0 -0
  301. package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js +0 -0
  302. package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js.map +0 -0
  303. package/dist/{node → lib}/exceptions/transport_already_used_exception.d.ts +0 -0
  304. package/dist/{node → lib}/exceptions/transport_already_used_exception.js +0 -0
  305. package/dist/{node → lib}/exceptions/transport_already_used_exception.js.map +0 -0
  306. package/dist/{node → lib}/exceptions/unknown_request_exception.d.ts +0 -0
  307. package/dist/{node → lib}/exceptions/unknown_request_exception.js +0 -0
  308. package/dist/{node → lib}/exceptions/unknown_request_exception.js.map +0 -0
  309. package/dist/lib/finalizer.d.ts +5 -0
  310. package/dist/lib/finalizer.js +21 -0
  311. package/dist/lib/finalizer.js.map +1 -0
  312. package/dist/{node → lib}/firmware_version.d.ts +0 -0
  313. package/dist/{node → lib}/firmware_version.js +0 -0
  314. package/dist/{node → lib}/firmware_version.js.map +0 -0
  315. package/dist/lib/gateway/bindings.d.ts +5 -0
  316. package/dist/lib/gateway/bindings.js +35 -0
  317. package/dist/lib/gateway/bindings.js.map +1 -0
  318. package/dist/{node/gateway/bindings.d.ts → lib/gateway/bindings.node.d.ts} +0 -0
  319. package/dist/{node/gateway/bindings.js → lib/gateway/bindings.node.js} +1 -1
  320. package/dist/lib/gateway/bindings.node.js.map +1 -0
  321. package/dist/{web/gateway/bindings.d.ts → lib/gateway/bindings.wasm.d.ts} +0 -0
  322. package/dist/{web/gateway/bindings.js → lib/gateway/bindings.wasm.js} +2 -1
  323. package/dist/lib/gateway/bindings.wasm.js.map +1 -0
  324. package/dist/{node → lib}/gateway/call.d.ts +0 -0
  325. package/dist/{web → lib}/gateway/call.js +2 -2
  326. package/dist/lib/gateway/call.js.map +1 -0
  327. package/dist/{node → lib}/gateway/convert_exceptions.d.ts +0 -0
  328. package/dist/{node → lib}/gateway/convert_exceptions.js +4 -0
  329. package/dist/lib/gateway/convert_exceptions.js.map +1 -0
  330. package/dist/{node → lib}/gateway/events.d.ts +0 -1
  331. package/dist/{node → lib}/gateway/events.js +4 -7
  332. package/dist/lib/gateway/events.js.map +1 -0
  333. package/dist/{node → lib}/gateway/index.d.ts +0 -0
  334. package/dist/{node → lib}/gateway/index.js +0 -0
  335. package/dist/{node → lib}/gateway/index.js.map +0 -0
  336. package/dist/{node → lib}/gateway/serialization.d.ts +0 -0
  337. package/dist/{node → lib}/gateway/serialization.js +0 -0
  338. package/dist/{node → lib}/gateway/serialization.js.map +0 -0
  339. package/dist/lib/gateway/wasm-exec.d.ts +1 -0
  340. package/dist/{web/wasm → lib/gateway}/wasm-exec.js +13 -54
  341. package/dist/lib/gateway/wasm-exec.js.map +1 -0
  342. package/dist/lib/gateway/wasm.d.ts +4 -0
  343. package/dist/{web/wasm → lib/gateway}/wasm.js +1 -3
  344. package/dist/lib/gateway/wasm.js.map +1 -0
  345. package/dist/lib/gcode/axis_mapping.d.ts +16 -0
  346. package/dist/{web/measurement.js → lib/gcode/axis_mapping.js} +11 -11
  347. package/dist/lib/gcode/axis_mapping.js.map +1 -0
  348. package/dist/lib/gcode/index.d.ts +8 -0
  349. package/dist/lib/gcode/index.js +20 -0
  350. package/dist/lib/gcode/index.js.map +1 -0
  351. package/dist/lib/gcode/translate_message.d.ts +21 -0
  352. package/dist/lib/gcode/translate_message.js +19 -0
  353. package/dist/lib/gcode/translate_message.js.map +1 -0
  354. package/dist/lib/gcode/translate_result.d.ts +17 -0
  355. package/dist/lib/gcode/translate_result.js +19 -0
  356. package/dist/lib/gcode/translate_result.js.map +1 -0
  357. package/dist/lib/gcode/translator.d.ts +68 -0
  358. package/dist/lib/gcode/translator.js +144 -0
  359. package/dist/lib/gcode/translator.js.map +1 -0
  360. package/dist/lib/gcode/translator_axis_definition.d.ts +20 -0
  361. package/dist/lib/gcode/translator_axis_definition.js +48 -0
  362. package/dist/lib/gcode/translator_axis_definition.js.map +1 -0
  363. package/dist/lib/gcode/translator_config.d.ts +18 -0
  364. package/dist/lib/gcode/translator_config.js +41 -0
  365. package/dist/lib/gcode/translator_config.js.map +1 -0
  366. package/dist/lib/gcode/translator_definition.d.ts +18 -0
  367. package/dist/{web/ascii/stream_axis_definition.js → lib/gcode/translator_definition.js} +11 -18
  368. package/dist/lib/gcode/translator_definition.js.map +1 -0
  369. package/dist/lib/gcode/translator_live.d.ts +70 -0
  370. package/dist/lib/gcode/translator_live.js +147 -0
  371. package/dist/lib/gcode/translator_live.js.map +1 -0
  372. package/dist/lib/gcode_ns.d.ts +19 -0
  373. package/dist/{web/tools.js → lib/gcode_ns.js} +14 -20
  374. package/dist/lib/gcode_ns.js.map +1 -0
  375. package/dist/{node → lib}/index.d.ts +3 -1
  376. package/dist/{node → lib}/index.js +6 -2
  377. package/dist/lib/index.js.map +1 -0
  378. package/dist/{node → lib}/library.d.ts +0 -0
  379. package/dist/{node → lib}/library.js +0 -0
  380. package/dist/{node → lib}/library.js.map +0 -0
  381. package/dist/{node → lib}/log_output_mode.d.ts +0 -0
  382. package/dist/{node → lib}/log_output_mode.js +0 -0
  383. package/dist/{node → lib}/log_output_mode.js.map +0 -0
  384. package/dist/{web → lib}/measurement.d.ts +1 -1
  385. package/dist/{node → lib}/measurement.js +0 -0
  386. package/dist/{node → lib}/measurement.js.map +1 -1
  387. package/dist/{node → lib}/protobufs/main_pb.d.ts +785 -0
  388. package/dist/{node → lib}/protobufs/main_pb.js +6039 -2
  389. package/dist/lib/protobufs/main_pb.js.map +1 -0
  390. package/dist/{node → lib}/rotation_direction.d.ts +0 -0
  391. package/dist/{node → lib}/rotation_direction.js +0 -0
  392. package/dist/{node → lib}/rotation_direction.js.map +0 -0
  393. package/dist/{node → lib}/tools.d.ts +0 -0
  394. package/dist/{node → lib}/tools.js +0 -0
  395. package/dist/{node → lib}/tools.js.map +0 -0
  396. package/dist/{node → lib}/units.d.ts +0 -0
  397. package/dist/{node → lib}/units.js +0 -0
  398. package/dist/{node → lib}/units.js.map +0 -0
  399. package/dist/lib/wasm.d.ts +4 -0
  400. package/dist/{web/init.js → lib/wasm.js} +5 -4
  401. package/dist/lib/wasm.js.map +1 -0
  402. package/package.json +9 -16
  403. package/dist/node/ascii/axis.d.ts +0 -172
  404. package/dist/node/ascii/axis.js.map +0 -1
  405. package/dist/node/ascii/axis_settings.js +0 -107
  406. package/dist/node/ascii/axis_settings.js.map +0 -1
  407. package/dist/node/ascii/connection.d.ts +0 -203
  408. package/dist/node/ascii/connection.js +0 -380
  409. package/dist/node/ascii/connection.js.map +0 -1
  410. package/dist/node/ascii/device.d.ts +0 -165
  411. package/dist/node/ascii/device.js.map +0 -1
  412. package/dist/node/ascii/device_settings.d.ts +0 -41
  413. package/dist/node/ascii/device_settings.js +0 -103
  414. package/dist/node/ascii/device_settings.js.map +0 -1
  415. package/dist/node/ascii/setting_constants.d.ts +0 -563
  416. package/dist/node/ascii/setting_constants.js.map +0 -1
  417. package/dist/node/ascii/stream.d.ts +0 -307
  418. package/dist/node/ascii/stream.js +0 -659
  419. package/dist/node/ascii/stream.js.map +0 -1
  420. package/dist/node/ascii/stream_axis_definition.d.ts +0 -17
  421. package/dist/node/ascii/stream_buffer.js.map +0 -1
  422. package/dist/node/binary/connection.js +0 -211
  423. package/dist/node/binary/connection.js.map +0 -1
  424. package/dist/node/exceptions/index.d.ts +0 -48
  425. package/dist/node/exceptions/index.js.map +0 -1
  426. package/dist/node/gateway/bindings.js.map +0 -1
  427. package/dist/node/gateway/call.js +0 -46
  428. package/dist/node/gateway/call.js.map +0 -1
  429. package/dist/node/gateway/convert_exceptions.js.map +0 -1
  430. package/dist/node/gateway/events.js.map +0 -1
  431. package/dist/node/index.js.map +0 -1
  432. package/dist/node/init.d.ts +0 -1
  433. package/dist/node/init.js +0 -8
  434. package/dist/node/init.js.map +0 -1
  435. package/dist/node/measurement.d.ts +0 -17
  436. package/dist/web/ascii/alert_event.d.ts +0 -28
  437. package/dist/web/ascii/alert_event.js +0 -21
  438. package/dist/web/ascii/alert_event.js.map +0 -1
  439. package/dist/web/ascii/all_axes.d.ts +0 -46
  440. package/dist/web/ascii/all_axes.js +0 -122
  441. package/dist/web/ascii/all_axes.js.map +0 -1
  442. package/dist/web/ascii/axis.js +0 -367
  443. package/dist/web/ascii/axis.js.map +0 -1
  444. package/dist/web/ascii/axis_identity.d.ts +0 -29
  445. package/dist/web/ascii/axis_identity.js +0 -21
  446. package/dist/web/ascii/axis_identity.js.map +0 -1
  447. package/dist/web/ascii/axis_settings.d.ts +0 -41
  448. package/dist/web/ascii/axis_settings.js.map +0 -1
  449. package/dist/web/ascii/axis_type.d.ts +0 -8
  450. package/dist/web/ascii/axis_type.js +0 -15
  451. package/dist/web/ascii/axis_type.js.map +0 -1
  452. package/dist/web/ascii/connection.js.map +0 -1
  453. package/dist/web/ascii/device.js +0 -296
  454. package/dist/web/ascii/device.js.map +0 -1
  455. package/dist/web/ascii/device_identity.d.ts +0 -33
  456. package/dist/web/ascii/device_identity.js +0 -23
  457. package/dist/web/ascii/device_identity.js.map +0 -1
  458. package/dist/web/ascii/device_io.d.ts +0 -80
  459. package/dist/web/ascii/device_io.js +0 -199
  460. package/dist/web/ascii/device_io.js.map +0 -1
  461. package/dist/web/ascii/device_io_info.d.ts +0 -24
  462. package/dist/web/ascii/device_io_info.js +0 -20
  463. package/dist/web/ascii/device_io_info.js.map +0 -1
  464. package/dist/web/ascii/device_settings.js.map +0 -1
  465. package/dist/web/ascii/index.d.ts +0 -26
  466. package/dist/web/ascii/index.js +0 -56
  467. package/dist/web/ascii/index.js.map +0 -1
  468. package/dist/web/ascii/lockstep.d.ts +0 -120
  469. package/dist/web/ascii/lockstep.js +0 -281
  470. package/dist/web/ascii/lockstep.js.map +0 -1
  471. package/dist/web/ascii/lockstep_axes.d.ts +0 -24
  472. package/dist/web/ascii/lockstep_axes.js +0 -20
  473. package/dist/web/ascii/lockstep_axes.js.map +0 -1
  474. package/dist/web/ascii/message_type.d.ts +0 -10
  475. package/dist/web/ascii/message_type.js +0 -17
  476. package/dist/web/ascii/message_type.js.map +0 -1
  477. package/dist/web/ascii/response.d.ts +0 -37
  478. package/dist/web/ascii/response.js +0 -23
  479. package/dist/web/ascii/response.js.map +0 -1
  480. package/dist/web/ascii/setting_constants.js +0 -570
  481. package/dist/web/ascii/setting_constants.js.map +0 -1
  482. package/dist/web/ascii/stream.js.map +0 -1
  483. package/dist/web/ascii/stream_axis_definition.js.map +0 -1
  484. package/dist/web/ascii/stream_axis_type.d.ts +0 -7
  485. package/dist/web/ascii/stream_axis_type.js +0 -14
  486. package/dist/web/ascii/stream_axis_type.js.map +0 -1
  487. package/dist/web/ascii/stream_buffer.d.ts +0 -27
  488. package/dist/web/ascii/stream_buffer.js +0 -71
  489. package/dist/web/ascii/stream_buffer.js.map +0 -1
  490. package/dist/web/ascii/stream_mode.d.ts +0 -9
  491. package/dist/web/ascii/stream_mode.js +0 -16
  492. package/dist/web/ascii/stream_mode.js.map +0 -1
  493. package/dist/web/ascii/transport.d.ts +0 -38
  494. package/dist/web/ascii/transport.js +0 -91
  495. package/dist/web/ascii/transport.js.map +0 -1
  496. package/dist/web/ascii/unknown_response_event.d.ts +0 -37
  497. package/dist/web/ascii/unknown_response_event.js +0 -23
  498. package/dist/web/ascii/unknown_response_event.js.map +0 -1
  499. package/dist/web/ascii/warning_flags.d.ts +0 -137
  500. package/dist/web/ascii/warning_flags.js +0 -144
  501. package/dist/web/ascii/warning_flags.js.map +0 -1
  502. package/dist/web/ascii/warnings.d.ts +0 -19
  503. package/dist/web/ascii/warnings.js +0 -62
  504. package/dist/web/ascii/warnings.js.map +0 -1
  505. package/dist/web/ascii_ns.d.ts +0 -55
  506. package/dist/web/ascii_ns.js +0 -53
  507. package/dist/web/ascii_ns.js.map +0 -1
  508. package/dist/web/binary/binary_settings.d.ts +0 -70
  509. package/dist/web/binary/binary_settings.js +0 -77
  510. package/dist/web/binary/binary_settings.js.map +0 -1
  511. package/dist/web/binary/command_code.d.ts +0 -102
  512. package/dist/web/binary/command_code.js +0 -109
  513. package/dist/web/binary/command_code.js.map +0 -1
  514. package/dist/web/binary/connection.d.ts +0 -115
  515. package/dist/web/binary/connection.js.map +0 -1
  516. package/dist/web/binary/device.d.ts +0 -192
  517. package/dist/web/binary/device.js +0 -375
  518. package/dist/web/binary/device.js.map +0 -1
  519. package/dist/web/binary/device_identity.d.ts +0 -42
  520. package/dist/web/binary/device_identity.js +0 -25
  521. package/dist/web/binary/device_identity.js.map +0 -1
  522. package/dist/web/binary/device_settings.d.ts +0 -24
  523. package/dist/web/binary/device_settings.js +0 -66
  524. package/dist/web/binary/device_settings.js.map +0 -1
  525. package/dist/web/binary/device_type.d.ts +0 -8
  526. package/dist/web/binary/device_type.js +0 -15
  527. package/dist/web/binary/device_type.js.map +0 -1
  528. package/dist/web/binary/error_code.d.ts +0 -97
  529. package/dist/web/binary/error_code.js +0 -104
  530. package/dist/web/binary/error_code.js.map +0 -1
  531. package/dist/web/binary/index.d.ts +0 -12
  532. package/dist/web/binary/index.js +0 -28
  533. package/dist/web/binary/index.js.map +0 -1
  534. package/dist/web/binary/message.d.ts +0 -20
  535. package/dist/web/binary/message.js +0 -19
  536. package/dist/web/binary/message.js.map +0 -1
  537. package/dist/web/binary/reply_code.d.ts +0 -12
  538. package/dist/web/binary/reply_code.js +0 -19
  539. package/dist/web/binary/reply_code.js.map +0 -1
  540. package/dist/web/binary/reply_only_event.d.ts +0 -20
  541. package/dist/web/binary/reply_only_event.js +0 -19
  542. package/dist/web/binary/reply_only_event.js.map +0 -1
  543. package/dist/web/binary/unknown_response_event.d.ts +0 -20
  544. package/dist/web/binary/unknown_response_event.js +0 -19
  545. package/dist/web/binary/unknown_response_event.js.map +0 -1
  546. package/dist/web/binary_ns.d.ts +0 -27
  547. package/dist/web/binary_ns.js +0 -39
  548. package/dist/web/binary_ns.js.map +0 -1
  549. package/dist/web/device_db_source_type.d.ts +0 -7
  550. package/dist/web/device_db_source_type.js +0 -14
  551. package/dist/web/device_db_source_type.js.map +0 -1
  552. package/dist/web/exceptions/binary_command_failed_exception.d.ts +0 -14
  553. package/dist/web/exceptions/binary_command_failed_exception.js +0 -32
  554. package/dist/web/exceptions/binary_command_failed_exception.js.map +0 -1
  555. package/dist/web/exceptions/binary_command_failed_exception_data.d.ts +0 -12
  556. package/dist/web/exceptions/binary_command_failed_exception_data.js +0 -17
  557. package/dist/web/exceptions/binary_command_failed_exception_data.js.map +0 -1
  558. package/dist/web/exceptions/command_failed_exception.d.ts +0 -14
  559. package/dist/web/exceptions/command_failed_exception.js +0 -32
  560. package/dist/web/exceptions/command_failed_exception.js.map +0 -1
  561. package/dist/web/exceptions/command_failed_exception_data.d.ts +0 -24
  562. package/dist/web/exceptions/command_failed_exception_data.js +0 -20
  563. package/dist/web/exceptions/command_failed_exception_data.js.map +0 -1
  564. package/dist/web/exceptions/command_preempted_exception.d.ts +0 -7
  565. package/dist/web/exceptions/command_preempted_exception.js +0 -17
  566. package/dist/web/exceptions/command_preempted_exception.js.map +0 -1
  567. package/dist/web/exceptions/connection_closed_exception.d.ts +0 -7
  568. package/dist/web/exceptions/connection_closed_exception.js +0 -17
  569. package/dist/web/exceptions/connection_closed_exception.js.map +0 -1
  570. package/dist/web/exceptions/connection_failed_exception.d.ts +0 -7
  571. package/dist/web/exceptions/connection_failed_exception.js +0 -17
  572. package/dist/web/exceptions/connection_failed_exception.js.map +0 -1
  573. package/dist/web/exceptions/conversion_failed_exception.d.ts +0 -7
  574. package/dist/web/exceptions/conversion_failed_exception.js +0 -17
  575. package/dist/web/exceptions/conversion_failed_exception.js.map +0 -1
  576. package/dist/web/exceptions/device_address_conflict_exception.d.ts +0 -14
  577. package/dist/web/exceptions/device_address_conflict_exception.js +0 -32
  578. package/dist/web/exceptions/device_address_conflict_exception.js.map +0 -1
  579. package/dist/web/exceptions/device_address_conflict_exception_data.d.ts +0 -12
  580. package/dist/web/exceptions/device_address_conflict_exception_data.js +0 -17
  581. package/dist/web/exceptions/device_address_conflict_exception_data.js.map +0 -1
  582. package/dist/web/exceptions/device_busy_exception.d.ts +0 -7
  583. package/dist/web/exceptions/device_busy_exception.js +0 -17
  584. package/dist/web/exceptions/device_busy_exception.js.map +0 -1
  585. package/dist/web/exceptions/device_db_failed_exception.d.ts +0 -7
  586. package/dist/web/exceptions/device_db_failed_exception.js +0 -17
  587. package/dist/web/exceptions/device_db_failed_exception.js.map +0 -1
  588. package/dist/web/exceptions/device_failed_exception.d.ts +0 -8
  589. package/dist/web/exceptions/device_failed_exception.js +0 -18
  590. package/dist/web/exceptions/device_failed_exception.js.map +0 -1
  591. package/dist/web/exceptions/device_not_identified_exception.d.ts +0 -7
  592. package/dist/web/exceptions/device_not_identified_exception.js +0 -17
  593. package/dist/web/exceptions/device_not_identified_exception.js.map +0 -1
  594. package/dist/web/exceptions/index.js +0 -102
  595. package/dist/web/exceptions/index.js.map +0 -1
  596. package/dist/web/exceptions/internal_error_exception.d.ts +0 -7
  597. package/dist/web/exceptions/internal_error_exception.js +0 -17
  598. package/dist/web/exceptions/internal_error_exception.js.map +0 -1
  599. package/dist/web/exceptions/invalid_argument_exception.d.ts +0 -7
  600. package/dist/web/exceptions/invalid_argument_exception.js +0 -17
  601. package/dist/web/exceptions/invalid_argument_exception.js.map +0 -1
  602. package/dist/web/exceptions/invalid_data_exception.d.ts +0 -7
  603. package/dist/web/exceptions/invalid_data_exception.js +0 -17
  604. package/dist/web/exceptions/invalid_data_exception.js.map +0 -1
  605. package/dist/web/exceptions/invalid_packet_exception.d.ts +0 -14
  606. package/dist/web/exceptions/invalid_packet_exception.js +0 -32
  607. package/dist/web/exceptions/invalid_packet_exception.js.map +0 -1
  608. package/dist/web/exceptions/invalid_packet_exception_data.d.ts +0 -16
  609. package/dist/web/exceptions/invalid_packet_exception_data.js +0 -18
  610. package/dist/web/exceptions/invalid_packet_exception_data.js.map +0 -1
  611. package/dist/web/exceptions/invalid_park_state_exception.d.ts +0 -7
  612. package/dist/web/exceptions/invalid_park_state_exception.js +0 -17
  613. package/dist/web/exceptions/invalid_park_state_exception.js.map +0 -1
  614. package/dist/web/exceptions/invalid_response_exception.d.ts +0 -14
  615. package/dist/web/exceptions/invalid_response_exception.js +0 -32
  616. package/dist/web/exceptions/invalid_response_exception.js.map +0 -1
  617. package/dist/web/exceptions/invalid_response_exception_data.d.ts +0 -12
  618. package/dist/web/exceptions/invalid_response_exception_data.js +0 -17
  619. package/dist/web/exceptions/invalid_response_exception_data.js.map +0 -1
  620. package/dist/web/exceptions/io_channel_out_of_range_exception.d.ts +0 -7
  621. package/dist/web/exceptions/io_channel_out_of_range_exception.js +0 -17
  622. package/dist/web/exceptions/io_channel_out_of_range_exception.js.map +0 -1
  623. package/dist/web/exceptions/io_failed_exception.d.ts +0 -7
  624. package/dist/web/exceptions/io_failed_exception.js +0 -17
  625. package/dist/web/exceptions/io_failed_exception.js.map +0 -1
  626. package/dist/web/exceptions/lockstep_enabled_exception.d.ts +0 -7
  627. package/dist/web/exceptions/lockstep_enabled_exception.js +0 -17
  628. package/dist/web/exceptions/lockstep_enabled_exception.js.map +0 -1
  629. package/dist/web/exceptions/lockstep_not_enabled_exception.d.ts +0 -7
  630. package/dist/web/exceptions/lockstep_not_enabled_exception.js +0 -17
  631. package/dist/web/exceptions/lockstep_not_enabled_exception.js.map +0 -1
  632. package/dist/web/exceptions/motion_lib_exception.d.ts +0 -8
  633. package/dist/web/exceptions/motion_lib_exception.js +0 -15
  634. package/dist/web/exceptions/motion_lib_exception.js.map +0 -1
  635. package/dist/web/exceptions/movement_failed_exception.d.ts +0 -14
  636. package/dist/web/exceptions/movement_failed_exception.js +0 -32
  637. package/dist/web/exceptions/movement_failed_exception.js.map +0 -1
  638. package/dist/web/exceptions/movement_failed_exception_data.d.ts +0 -16
  639. package/dist/web/exceptions/movement_failed_exception_data.js +0 -18
  640. package/dist/web/exceptions/movement_failed_exception_data.js.map +0 -1
  641. package/dist/web/exceptions/movement_interrupted_exception.d.ts +0 -14
  642. package/dist/web/exceptions/movement_interrupted_exception.js +0 -32
  643. package/dist/web/exceptions/movement_interrupted_exception.js.map +0 -1
  644. package/dist/web/exceptions/movement_interrupted_exception_data.d.ts +0 -16
  645. package/dist/web/exceptions/movement_interrupted_exception_data.js +0 -18
  646. package/dist/web/exceptions/movement_interrupted_exception_data.js.map +0 -1
  647. package/dist/web/exceptions/no_device_found_exception.d.ts +0 -7
  648. package/dist/web/exceptions/no_device_found_exception.js +0 -17
  649. package/dist/web/exceptions/no_device_found_exception.js.map +0 -1
  650. package/dist/web/exceptions/not_supported_exception.d.ts +0 -7
  651. package/dist/web/exceptions/not_supported_exception.js +0 -17
  652. package/dist/web/exceptions/not_supported_exception.js.map +0 -1
  653. package/dist/web/exceptions/os_failed_exception.d.ts +0 -7
  654. package/dist/web/exceptions/os_failed_exception.js +0 -17
  655. package/dist/web/exceptions/os_failed_exception.js.map +0 -1
  656. package/dist/web/exceptions/out_of_request_ids_exception.d.ts +0 -7
  657. package/dist/web/exceptions/out_of_request_ids_exception.js +0 -17
  658. package/dist/web/exceptions/out_of_request_ids_exception.js.map +0 -1
  659. package/dist/web/exceptions/request_timeout_exception.d.ts +0 -7
  660. package/dist/web/exceptions/request_timeout_exception.js +0 -17
  661. package/dist/web/exceptions/request_timeout_exception.js.map +0 -1
  662. package/dist/web/exceptions/serial_port_busy_exception.d.ts +0 -7
  663. package/dist/web/exceptions/serial_port_busy_exception.js +0 -17
  664. package/dist/web/exceptions/serial_port_busy_exception.js.map +0 -1
  665. package/dist/web/exceptions/setting_not_found_exception.d.ts +0 -7
  666. package/dist/web/exceptions/setting_not_found_exception.js +0 -17
  667. package/dist/web/exceptions/setting_not_found_exception.js.map +0 -1
  668. package/dist/web/exceptions/stream_execution_exception.d.ts +0 -14
  669. package/dist/web/exceptions/stream_execution_exception.js +0 -32
  670. package/dist/web/exceptions/stream_execution_exception.js.map +0 -1
  671. package/dist/web/exceptions/stream_execution_exception_data.d.ts +0 -16
  672. package/dist/web/exceptions/stream_execution_exception_data.js +0 -18
  673. package/dist/web/exceptions/stream_execution_exception_data.js.map +0 -1
  674. package/dist/web/exceptions/stream_mode_exception.d.ts +0 -7
  675. package/dist/web/exceptions/stream_mode_exception.js +0 -17
  676. package/dist/web/exceptions/stream_mode_exception.js.map +0 -1
  677. package/dist/web/exceptions/stream_movement_failed_exception.d.ts +0 -14
  678. package/dist/web/exceptions/stream_movement_failed_exception.js +0 -32
  679. package/dist/web/exceptions/stream_movement_failed_exception.js.map +0 -1
  680. package/dist/web/exceptions/stream_movement_failed_exception_data.d.ts +0 -16
  681. package/dist/web/exceptions/stream_movement_failed_exception_data.js +0 -18
  682. package/dist/web/exceptions/stream_movement_failed_exception_data.js.map +0 -1
  683. package/dist/web/exceptions/stream_movement_interrupted_exception.d.ts +0 -14
  684. package/dist/web/exceptions/stream_movement_interrupted_exception.js +0 -32
  685. package/dist/web/exceptions/stream_movement_interrupted_exception.js.map +0 -1
  686. package/dist/web/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -16
  687. package/dist/web/exceptions/stream_movement_interrupted_exception_data.js +0 -18
  688. package/dist/web/exceptions/stream_movement_interrupted_exception_data.js.map +0 -1
  689. package/dist/web/exceptions/stream_setup_failed_exception.d.ts +0 -7
  690. package/dist/web/exceptions/stream_setup_failed_exception.js +0 -17
  691. package/dist/web/exceptions/stream_setup_failed_exception.js.map +0 -1
  692. package/dist/web/exceptions/transport_already_used_exception.d.ts +0 -7
  693. package/dist/web/exceptions/transport_already_used_exception.js +0 -17
  694. package/dist/web/exceptions/transport_already_used_exception.js.map +0 -1
  695. package/dist/web/exceptions/unknown_request_exception.d.ts +0 -7
  696. package/dist/web/exceptions/unknown_request_exception.js +0 -17
  697. package/dist/web/exceptions/unknown_request_exception.js.map +0 -1
  698. package/dist/web/firmware_version.d.ts +0 -20
  699. package/dist/web/firmware_version.js +0 -19
  700. package/dist/web/firmware_version.js.map +0 -1
  701. package/dist/web/gateway/bindings.js.map +0 -1
  702. package/dist/web/gateway/call.d.ts +0 -6
  703. package/dist/web/gateway/call.js.map +0 -1
  704. package/dist/web/gateway/convert_exceptions.d.ts +0 -4
  705. package/dist/web/gateway/convert_exceptions.js +0 -74
  706. package/dist/web/gateway/convert_exceptions.js.map +0 -1
  707. package/dist/web/gateway/events.d.ts +0 -9
  708. package/dist/web/gateway/events.js +0 -60
  709. package/dist/web/gateway/events.js.map +0 -1
  710. package/dist/web/gateway/index.d.ts +0 -4
  711. package/dist/web/gateway/index.js +0 -23
  712. package/dist/web/gateway/index.js.map +0 -1
  713. package/dist/web/gateway/serialization.d.ts +0 -6
  714. package/dist/web/gateway/serialization.js +0 -39
  715. package/dist/web/gateway/serialization.js.map +0 -1
  716. package/dist/web/index.d.ts +0 -12
  717. package/dist/web/index.js +0 -33
  718. package/dist/web/index.js.map +0 -1
  719. package/dist/web/init.d.ts +0 -5
  720. package/dist/web/init.js.map +0 -1
  721. package/dist/web/library.d.ts +0 -30
  722. package/dist/web/library.js +0 -73
  723. package/dist/web/library.js.map +0 -1
  724. package/dist/web/log_output_mode.d.ts +0 -9
  725. package/dist/web/log_output_mode.js +0 -16
  726. package/dist/web/log_output_mode.js.map +0 -1
  727. package/dist/web/measurement.js.map +0 -1
  728. package/dist/web/protobufs/main_pb.d.ts +0 -5228
  729. package/dist/web/protobufs/main_pb.js +0 -39387
  730. package/dist/web/rotation_direction.d.ts +0 -9
  731. package/dist/web/rotation_direction.js +0 -16
  732. package/dist/web/rotation_direction.js.map +0 -1
  733. package/dist/web/tools.d.ts +0 -10
  734. package/dist/web/tools.js.map +0 -1
  735. package/dist/web/units.d.ts +0 -147
  736. package/dist/web/units.js +0 -167
  737. package/dist/web/units.js.map +0 -1
  738. package/dist/web/wasm/wasm-exec.d.ts +0 -1
  739. package/dist/web/wasm/wasm-exec.js.map +0 -1
  740. package/dist/web/wasm/wasm.d.ts +0 -14
  741. package/dist/web/wasm/wasm.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"axis.js","sourceRoot":"","sources":["../../../src-web/ascii/axis.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAGtD,mDAA+C;AAE/C,yCAAsC;AACtC,mDAA+C;AAC/C,oCAAmF;AACnF,yCAAsC;AACtC,gDAA6C;AAC7C,oDAAsC;AAEtC;;GAEG;AACH,MAAa,IAAI;IAqEf,YAAY,MAAc,EAAE,UAAkB;QAC5C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpD,CAAC;IAzED;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;;OAGG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;I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,CAAC,CAAC;IACvE,CAAC;CACF;AAzbD,oBAybC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport { AxisIdentity } from './axis_identity';\nimport { AxisType } from './axis_type';\nimport { Warnings } from './warnings';\nimport { AxisSettings } from './axis_settings';\nimport { Angle, Length, Native, AngularVelocity, Velocity, Units } from '../units';\nimport { Response } from './response';\nimport { Measurement } from '../measurement';\nimport * as gateway from '../gateway';\n\n/**\n * Represents an axis of motion associated with a device.\n */\nexport class Axis {\n /**\n * Device that controls this axis.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The axis number identifies the axis on the device.\n * The first axis has the number one.\n */\n public get axisNumber(): number {\n return this._axisNumber;\n }\n private _axisNumber: number;\n\n /**\n * Settings and properties of this axis.\n */\n public get settings(): AxisSettings {\n return this._settings;\n }\n private _settings: AxisSettings;\n\n /**\n * Warnings and faults of this axis.\n */\n public get warnings(): Warnings {\n return this._warnings;\n }\n private _warnings: Warnings;\n\n /**\n * Identity of the axis.\n */\n public get identity(): AxisIdentity {\n return this._retrieveIdentity();\n }\n\n /**\n * Unique ID of the peripheral hardware.\n */\n public get peripheralId(): number {\n return this.identity.peripheralId;\n }\n\n /**\n * Name of the peripheral.\n */\n public get peripheralName(): string {\n return this.identity.peripheralName;\n }\n\n /**\n * Indicates whether the axis is a peripheral or part of an integrated device.\n */\n public get isPeripheral(): boolean {\n return this.identity.isPeripheral;\n }\n\n /**\n * Determines the type of an axis and units it accepts.\n */\n public get axisType(): AxisType {\n return this.identity.axisType;\n }\n\n constructor(device: Device, axisNumber: number) {\n this._device = device;\n this._axisNumber = axisNumber;\n this._settings = new AxisSettings(this);\n this._warnings = new Warnings(device, axisNumber);\n }\n\n /**\n * Homes axis. Axis returns to its homing position.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceHomeRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/home', request);\n }\n\n /**\n * Stops ongoing axis movement. Decelerates until zero speed.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceStopRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/stop', request);\n }\n\n /**\n * Parks the axis in anticipation of turning the power off.\n * It can later be powered on, unparked, and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n await gateway.callAsync('device/park', request);\n }\n\n /**\n * Unparks axis. Axis will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n await gateway.callAsync('device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether the axis is parked or not.\n * @return True if the axis is currently parked. False otherwise.\n */\n public async isParked(): Promise<boolean> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = await gateway.callAsync<gateway.DeviceIsParkedResponse>(\n 'device/is_parked',\n request,\n gateway.DeviceIsParkedResponse);\n return response.getIsParked();\n }\n\n /**\n * Waits until axis stops moving.\n * @param throwErrorOnFault Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n throwErrorOnFault: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceWaitUntilIdleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setThrowErrorOnFault(throwErrorOnFault);\n\n await gateway.callAsync('device/wait_until_idle', request);\n }\n\n /**\n * Returns bool indicating whether the axis is executing a motion command.\n * @return True if the axis is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request = new gateway.DeviceIsBusyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = await gateway.callAsync<gateway.DeviceIsBusyResponse>(\n 'device/is_busy',\n request,\n gateway.DeviceIsBusyResponse);\n return response.getIsBusy();\n }\n\n /**\n * Move axis to absolute position.\n * @param position Absolute position.\n * @param unit Units of position.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async moveAbsolute(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.ABS);\n request.setArg(position);\n request.setUnit(unit);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the maximum position as specified by limit.max.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async moveMax(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.MAX);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the minimum position as specified by limit.min.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async moveMin(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.MIN);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Move axis to position relative to current position.\n * @param position Relative position.\n * @param unit Units of position.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async moveRelative(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.REL);\n request.setArg(position);\n request.setUnit(unit);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Begins to move axis at specified speed.\n * @param velocity Movement velocity.\n * @param unit Units of velocity.\n */\n public async moveVelocity(\n velocity: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.VEL);\n request.setArg(velocity);\n request.setUnit(unit);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Returns current axis position.\n * @param unit Units of position.\n * @return Axis position.\n */\n public async getPosition(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.DeviceGetSettingRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setSetting('pos');\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.DeviceGetSettingResponse>(\n 'device/get_setting',\n request,\n gateway.DeviceGetSettingResponse);\n return response.getValue();\n }\n\n /**\n * Sends a generic ASCII command to this axis.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param checkErrors Controls whether to throw an exception when the device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return A response to the command.\n */\n public async genericCommand(\n command: string,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommand(command);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponse>(\n 'interface/generic_command',\n request,\n gateway.GenericCommandResponse);\n return Response.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic ASCII command to this axis and expect multiple responses.\n * Responses are returned in order of arrival.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param checkErrors Controls whether to throw an exception when a device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: string,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response[]> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommand(command);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponseCollection>(\n 'interface/generic_command_multi_response',\n request,\n gateway.GenericCommandResponseCollection);\n return response.toObject().responsesList.map(resp => Response.fromProtobuf(resp));\n }\n\n /**\n * Sends a generic ASCII command to this axis without expecting a response and without adding a message ID\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n */\n public async genericCommandNoResponse(\n command: string\n ): Promise<void> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommand(command);\n\n await gateway.callAsync('interface/generic_command_no_response', request);\n }\n\n /**\n * Formats parameters into a command and performs unit conversions.\n * Parameters in the command template are denoted by a question mark.\n * Command returned is only valid for this axis and this device.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param commandTemplate Template of a command to prepare. Parameters are denoted by question marks.\n * @param parameters Variable number of command parameters.\n * @return Command with converted parameters.\n */\n public prepareCommand(\n commandTemplate: string,\n ...parameters: Measurement[]\n ): string {\n const request = new gateway.PrepareCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommandTemplate(commandTemplate);\n request.setParametersList(parameters.map(Measurement.toProtobuf));\n\n const response = gateway.callSync<gateway.PrepareCommandResponse>(\n 'device/prepare_command',\n request,\n gateway.PrepareCommandResponse);\n return response.getCommand();\n }\n\n /**\n * Returns a string that represents the axis.\n * @return A string that represents the axis.\n */\n public toString(): string {\n const request = new gateway.ToStringRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = gateway.callSync<gateway.ToStringResponse>(\n 'device/axis_to_string',\n request,\n gateway.ToStringResponse);\n return response.getToStr();\n }\n\n /**\n * Returns identity.\n * @return Axis identity.\n */\n private _retrieveIdentity(): AxisIdentity {\n const request = new gateway.DeviceGetAxisIdentityRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = gateway.callSync<gateway.DeviceGetAxisIdentityResponse>(\n 'device/get_axis_identity',\n request,\n gateway.DeviceGetAxisIdentityResponse);\n return AxisIdentity.fromProtobuf(response.getIdentity()!.toObject());\n }\n}\n"]}
@@ -1,29 +0,0 @@
1
- import { AxisType } from './axis_type';
2
- /**
3
- * Representation of data gathered during axis identification.
4
- */
5
- export interface AxisIdentity {
6
- /**
7
- * Unique ID of the peripheral hardware.
8
- */
9
- peripheralId: number;
10
- /**
11
- * Name of the peripheral.
12
- */
13
- peripheralName: string;
14
- /**
15
- * Indicates whether the axis is a peripheral or part of an integrated device.
16
- */
17
- isPeripheral: boolean;
18
- /**
19
- * Determines the type of an axis and units it accepts.
20
- */
21
- axisType: AxisType;
22
- /**
23
- * The peripheral has hardware modifications.
24
- */
25
- isModified: boolean;
26
- }
27
- export declare namespace AxisIdentity {
28
- const __type = "AxisIdentity";
29
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
- // ============= DO NOT EDIT DIRECTLY ============= //
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.AxisIdentity = void 0;
6
- var AxisIdentity;
7
- (function (AxisIdentity) {
8
- AxisIdentity.__type = 'AxisIdentity';
9
- /** @internal */
10
- function fromProtobuf(pbData) {
11
- return {
12
- peripheralId: pbData.peripheralId,
13
- peripheralName: pbData.peripheralName,
14
- isPeripheral: pbData.isPeripheral,
15
- axisType: pbData.axisType,
16
- isModified: pbData.isModified,
17
- };
18
- }
19
- AxisIdentity.fromProtobuf = fromProtobuf;
20
- })(AxisIdentity = exports.AxisIdentity || (exports.AxisIdentity = {}));
21
- //# sourceMappingURL=axis_identity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axis_identity.js","sourceRoot":"","sources":["../../../src-web/ascii/axis_identity.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAoCtD,IAAiB,YAAY,CAa5B;AAbD,WAAiB,YAAY;IACd,mBAAM,GAAG,cAAc,CAAC;IAErC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAqC;QAChE,OAAO;YACL,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,QAAQ,EAAE,MAAM,CAAC,QAAe;YAChC,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;IACJ,CAAC;IARe,yBAAY,eAQ3B,CAAA;AACH,CAAC,EAbgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAa5B","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { AxisType } from './axis_type';\n\n/**\n * Representation of data gathered during axis identification.\n */\nexport interface AxisIdentity {\n /**\n * Unique ID of the peripheral hardware.\n */\n peripheralId: number;\n\n /**\n * Name of the peripheral.\n */\n peripheralName: string;\n\n /**\n * Indicates whether the axis is a peripheral or part of an integrated device.\n */\n isPeripheral: boolean;\n\n /**\n * Determines the type of an axis and units it accepts.\n */\n axisType: AxisType;\n\n /**\n * The peripheral has hardware modifications.\n */\n isModified: boolean;\n\n}\n\nexport namespace AxisIdentity {\n export const __type = 'AxisIdentity';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.AxisIdentity.AsObject): AxisIdentity {\n return {\n peripheralId: pbData.peripheralId,\n peripheralName: pbData.peripheralName,\n isPeripheral: pbData.isPeripheral,\n axisType: pbData.axisType as any,\n isModified: pbData.isModified,\n };\n }\n}\n"]}
@@ -1,41 +0,0 @@
1
- import { Axis } from './axis';
2
- import { Units } from '../units';
3
- /**
4
- * Class providing access to various axis settings and properties.
5
- */
6
- export declare class AxisSettings {
7
- private _axis;
8
- constructor(axis: Axis);
9
- /**
10
- * Returns any axis setting or property.
11
- * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
12
- * @param setting Name of the setting.
13
- * @param unit Units of setting.
14
- * @return Setting value.
15
- */
16
- get(setting: string, unit?: Units): Promise<number>;
17
- /**
18
- * Sets any axis setting.
19
- * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
20
- * @param setting Name of the setting.
21
- * @param value Value of the setting.
22
- * @param unit Units of setting.
23
- */
24
- set(setting: string, value: number, unit?: Units): Promise<void>;
25
- /**
26
- * Convert arbitrary setting value to Zaber native units.
27
- * @param setting Name of the setting.
28
- * @param value Value of the setting in units specified by following argument.
29
- * @param unit Units of the value.
30
- * @return Setting value.
31
- */
32
- convertToNativeUnits(setting: string, value: number, unit: Units): number;
33
- /**
34
- * Convert arbitrary setting value from Zaber native units.
35
- * @param setting Name of the setting.
36
- * @param value Value of the setting in Zaber native units.
37
- * @param unit Units to convert value to.
38
- * @return Setting value.
39
- */
40
- convertFromNativeUnits(setting: string, value: number, unit: Units): number;
41
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"axis_settings.js","sourceRoot":"","sources":["../../../src-web/ascii/axis_settings.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAGtD,oCAAiC;AACjC,oDAAsC;AAEtC;;GAEG;AACH,MAAa,YAAY;IAGvB,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,OAAe,EACf,OAAc,aAAK,CAAC,MAAM;QAE1B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;QACtD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACjE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACnD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,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IRECTLY ============= //\n\nimport { Axis } from './axis';\nimport { Units } from '../units';\nimport * as gateway from '../gateway';\n\n/**\n * Class providing access to various axis settings and properties.\n */\nexport class AxisSettings {\n private _axis: Axis;\n\n constructor(axis: Axis) {\n this._axis = axis;\n }\n\n /**\n * Returns any axis setting or property.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param unit Units of setting.\n * @return Setting value.\n */\n public async get(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.DeviceGetSettingRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setSetting(setting);\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.DeviceGetSettingResponse>(\n 'device/get_setting',\n request,\n gateway.DeviceGetSettingResponse);\n return response.getValue();\n }\n\n /**\n * Sets any axis setting.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n * @param unit Units of setting.\n */\n public async set(\n setting: string,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.DeviceSetSettingRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setSetting(setting);\n request.setValue(value);\n request.setUnit(unit);\n\n await gateway.callAsync('device/set_setting', request);\n }\n\n /**\n * Convert arbitrary setting value to Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in units specified by following argument.\n * @param unit Units of the value.\n * @return Setting value.\n */\n public convertToNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request = new gateway.DeviceConvertSettingRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setSetting(setting);\n request.setValue(value);\n request.setUnit(unit);\n\n const response = gateway.callSync<gateway.DeviceConvertSettingResponse>(\n 'device/convert_setting',\n request,\n gateway.DeviceConvertSettingResponse);\n return response.getValue();\n }\n\n /**\n * Convert arbitrary setting value from Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in Zaber native units.\n * @param unit Units to convert value to.\n * @return Setting value.\n */\n public convertFromNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request = new gateway.DeviceConvertSettingRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setFromNative(true);\n request.setSetting(setting);\n request.setValue(value);\n request.setUnit(unit);\n\n const response = gateway.callSync<gateway.DeviceConvertSettingResponse>(\n 'device/convert_setting',\n request,\n gateway.DeviceConvertSettingResponse);\n return response.getValue();\n }\n}\n"]}
@@ -1,8 +0,0 @@
1
- /**
2
- * Denotes type of an axis and units it accepts.
3
- */
4
- export declare enum AxisType {
5
- UNKNOWN = 0,
6
- LINEAR = 1,
7
- ROTARY = 2
8
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
- // ============= DO NOT EDIT DIRECTLY ============= //
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.AxisType = void 0;
6
- /**
7
- * Denotes type of an axis and units it accepts.
8
- */
9
- var AxisType;
10
- (function (AxisType) {
11
- AxisType[AxisType["UNKNOWN"] = 0] = "UNKNOWN";
12
- AxisType[AxisType["LINEAR"] = 1] = "LINEAR";
13
- AxisType[AxisType["ROTARY"] = 2] = "ROTARY";
14
- })(AxisType = exports.AxisType || (exports.AxisType = {}));
15
- //# sourceMappingURL=axis_type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axis_type.js","sourceRoot":"","sources":["../../../src-web/ascii/axis_type.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;GAEG;AACH,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,6CAAW,CAAA;IACX,2CAAU,CAAA;IACV,2CAAU,CAAA;AACZ,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\n/**\n * Denotes type of an axis and units it accepts.\n */\nexport enum AxisType {\n UNKNOWN = 0,\n LINEAR = 1,\n ROTARY = 2,\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"connection.js","sourceRoot":"","sources":["../../../src-web/ascii/connection.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,mBAAiB;AACjB,+BAAiD;AACjD,8CAA8D;AAC9D,oDAAsC;AACtC,wCAAiD;AAEjD,qCAAkC;AAClC,yCAAsC;AACtC,qEAAgE;AAChE,+CAA2C;AAG3C;;GAEG;AACH,MAAa,UAAU;IAgDrB,YAAY,WAAmB;QAqbvB,kBAAa,GAAG,IAAI,oBAAa,EAAsB,CAAC;QApb9D,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC;IAlCD;;OAEG;IACH,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAGD;;;OAGG;IACH,IAAW,qBAAqB;QAC9B,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED,IAAW,qBAAqB,CAAC,KAAa;QAC5C,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,IAAW,eAAe;QACxB,OAAO,IAAI,CAAC,wBAAwB,EAAE,CAAC;IACzC,CAAC;IAED,IAAW,eAAe,CAAC,KAAc;QACvC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,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GAAG,gBAAM,CAAC,IAAI,CACtB,qBAAS,CAAC,IAAI,CAAC,aAAa,CAAC,EAC7B,qBAAW,CAA8B,iBAAiB,CAAC,EAC3D,kBAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,KAAK,IAAI,CAAC,WAAW,CAAC,EACvD,eAAG,CAAC,KAAK,CAAC,EAAE,CAAC,wBAAU,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAC7C,CAAC;QAEF,gBAAM,CAAC,IAAI,CACT,qBAAW,CAAqC,wBAAwB,CAAC,EACzE,kBAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,KAAK,IAAI,CAAC,WAAW,CAAC,EACvD,gBAAI,CAAC,CAAC,CAAC,EACP,eAAG,CAAC,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;;AAngBH,gCAogBC;AAxfC;;GAEG;AACoB,4BAAiB,GAAW,MAAM,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport '../init';\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { map, filter, takeUntil, take } from 'rxjs/operators';\nimport * as gateway from '../gateway';\nimport { events, filterEvent } from '../gateway';\nimport { Transport } from './transport';\nimport { Device } from './device';\nimport { Response } from './response';\nimport { UnknownResponseEvent } from './unknown_response_event';\nimport { AlertEvent } from './alert_event';\nimport { MotionLibException } from '../exceptions';\n\n/**\n * Class representing access to particular connection (serial port, TCP connection).\n */\nexport class Connection {\n\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 an alert is received from a device.\n */\n public alert!: Observable<AlertEvent>;\n\n /**\n * Default baud rate for serial connections.\n */\n public static readonly DEFAULT_BAUD_RATE: number = 115200;\n\n /**\n * The interface ID identifies this Connection instance with the underlying library.\n */\n public get interfaceId(): number {\n return this._interfaceId;\n }\n private _interfaceId: number;\n\n /**\n * The default timeout, in milliseconds, for a device to respond to a request.\n * Setting the timeout to a too low value may cause request timeout exceptions.\n */\n public get defaultRequestTimeout(): number {\n return this._retrieveTimeout();\n }\n\n public set defaultRequestTimeout(value: number) {\n this._changeTimeout(value);\n }\n\n /**\n * Controls whether outgoing messages contain checksum.\n */\n public get checksumEnabled(): boolean {\n return this._retrieveChecksumEnabled();\n }\n\n public set checksumEnabled(value: boolean) {\n this._changeChecksumEnabled(value);\n }\n\n constructor(interfaceId: number) {\n this._interfaceId = interfaceId;\n this._subscribe();\n }\n\n /**\n * Opens a serial port, if Zaber Launcher controls the port, the port will be opened through Zaber Launcher.\n * Zaber Launcher allows sharing of the port between multiple applications.\n * Use openSerialPortDirectly if sharing is not desirable.\n * @param portName Name of the port to open.\n * @param baudRate Optional baud rate (defaults to 115200).\n * @return An object representing the port.\n */\n public static async openSerialPort(\n portName: string,\n baudRate: number = Connection.DEFAULT_BAUD_RATE\n ): Promise<Connection> {\n const request = new gateway.OpenInterfaceRequest();\n request.setInterfaceType(gateway.InterfaceType.SERIAL_PORT);\n request.setPortName(portName);\n request.setBaudRate(baudRate);\n\n const response = await gateway.callAsync<gateway.OpenInterfaceResponse>(\n 'interface/open',\n request,\n gateway.OpenInterfaceResponse);\n return new Connection(response.getInterfaceId());\n }\n\n /**\n * Opens a serial port, bypassing Zaber Launcher.\n * If the port is already opened by Zaber Launcher, this will fail.\n * @param portName Name of the port to open.\n * @param baudRate Optional baud rate (defaults to 115200).\n * @return An object representing the port.\n */\n public static async openSerialPortDirectly(\n portName: string,\n baudRate: number = Connection.DEFAULT_BAUD_RATE\n ): Promise<Connection> {\n const request = new gateway.OpenInterfaceRequest();\n request.setInterfaceType(gateway.InterfaceType.SERIAL_PORT);\n request.setRejectRoutedConnection(true);\n request.setPortName(portName);\n request.setBaudRate(baudRate);\n\n const response = await gateway.callAsync<gateway.OpenInterfaceResponse>(\n 'interface/open',\n request,\n gateway.OpenInterfaceResponse);\n return new Connection(response.getInterfaceId());\n }\n\n /**\n * Opens a TCP connection.\n * @param hostName Hostname or IP address.\n * @param port Port number.\n * @return An object representing the connection.\n */\n public static async openTcp(\n hostName: string,\n port: number\n ): Promise<Connection> {\n const request = new gateway.OpenInterfaceRequest();\n request.setInterfaceType(gateway.InterfaceType.TCP);\n request.setHostName(hostName);\n request.setPort(port);\n\n const response = await gateway.callAsync<gateway.OpenInterfaceResponse>(\n 'interface/open',\n request,\n gateway.OpenInterfaceResponse);\n return new Connection(response.getInterfaceId());\n }\n\n /**\n * Opens a connection using a custom transport.\n * @param transport The custom connection transport.\n * @return An object representing the connection.\n */\n public static async openCustom(\n transport: Transport\n ): Promise<Connection> {\n const request = new gateway.OpenInterfaceRequest();\n request.setInterfaceType(gateway.InterfaceType.CUSTOM);\n request.setTransport(transport.transportId);\n\n const response = await gateway.callAsync<gateway.OpenInterfaceResponse>(\n 'interface/open',\n request,\n gateway.OpenInterfaceResponse);\n return new Connection(response.getInterfaceId());\n }\n\n /**\n * Opens a unauthenticated connection to a cloud connected device chain.\n * Use this method to connect to Virtual Device Demo instance.\n * @param cloudId The cloud ID to connect to.\n * @param connectionName The name of the connection to open.\n * Can be left empty to default to the only connection present.\n * Otherwise, use serial port name for serial port connection or hostname:port for TCP connection.\n * @param api The URL of the API to receive connection info from.\n * @return An object representing the connection.\n */\n public static async openIotUnauthenticated(\n cloudId: string,\n connectionName: string = '',\n api: string = 'https://api.zaber.io'\n ): Promise<Connection> {\n const request = new gateway.OpenInterfaceRequest();\n request.setInterfaceType(gateway.InterfaceType.IOT);\n request.setRealm('unauthenticated');\n request.setToken('unauthenticated');\n request.setCloudId(cloudId);\n request.setConnectionName(connectionName);\n request.setApi(api);\n\n const response = await gateway.callAsync<gateway.OpenInterfaceResponse>(\n 'interface/open',\n request,\n gateway.OpenInterfaceResponse);\n return new Connection(response.getInterfaceId());\n }\n\n /**\n * Opens a secured connection to a cloud connected device chain.\n * Use this method to connect to devices on your account.\n * @param cloudId The cloud ID to connect to.\n * @param token The token to authenticate with.\n * @param connectionName The name of the connection to open.\n * Can be left empty to default to the only connection present.\n * Otherwise, use serial port name for serial port connection or hostname:port for TCP connection.\n * @param realm The realm to connect to.\n * @param api The URL of the API to receive connection info from.\n * @return An object representing the connection.\n */\n public static async openIotAuthenticated(\n cloudId: string,\n token: string,\n connectionName: string = '',\n realm: string = '',\n api: string = 'https://api.zaber.io'\n ): Promise<Connection> {\n const request = new gateway.OpenInterfaceRequest();\n request.setInterfaceType(gateway.InterfaceType.IOT);\n request.setCloudId(cloudId);\n request.setToken(token);\n request.setConnectionName(connectionName);\n request.setRealm(realm);\n request.setApi(api);\n\n const response = await gateway.callAsync<gateway.OpenInterfaceResponse>(\n 'interface/open',\n request,\n gateway.OpenInterfaceResponse);\n return new Connection(response.getInterfaceId());\n }\n\n /**\n * Sends a generic ASCII command to this connection.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param device Optional device address to send the command to.\n * @param axis Optional axis number to send the command to.\n * @param checkErrors Controls whether to throw an exception when the device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return A response to the command.\n */\n public async genericCommand(\n command: string,\n device: number = 0,\n axis: number = 0,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.interfaceId);\n request.setCommand(command);\n request.setDevice(device);\n request.setAxis(axis);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponse>(\n 'interface/generic_command',\n request,\n gateway.GenericCommandResponse);\n return Response.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic ASCII command to this connection without expecting a response and without adding a message ID.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param device Optional device address to send the command to.\n * @param axis Optional axis number to send the command to.\n */\n public async genericCommandNoResponse(\n command: string,\n device: number = 0,\n axis: number = 0\n ): Promise<void> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.interfaceId);\n request.setCommand(command);\n request.setDevice(device);\n request.setAxis(axis);\n\n await gateway.callAsync('interface/generic_command_no_response', request);\n }\n\n /**\n * Sends a generic ASCII command to this connection and expect multiple responses,\n * either from one device or from many devices.\n * Responses are returned in order of arrival.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param device Optional device address to send the command to.\n * @param axis Optional axis number to send the command to.\n * @param checkErrors Controls whether to throw an exception when a device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: string,\n device: number = 0,\n axis: number = 0,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response[]> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.interfaceId);\n request.setCommand(command);\n request.setDevice(device);\n request.setAxis(axis);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponseCollection>(\n 'interface/generic_command_multi_response',\n request,\n gateway.GenericCommandResponseCollection);\n return response.toObject().responsesList.map(resp => Response.fromProtobuf(resp));\n }\n\n /**\n * Resets ASCII protocol message IDs. Only for testing purposes.\n */\n public resetIds(): void {\n const request = new gateway.EmptyInterfaceRequest();\n request.setInterfaceId(this.interfaceId);\n\n gateway.callSync('interface/reset_ids', request);\n }\n\n /**\n * Close the connection.\n */\n public async close(): Promise<void> {\n const request = new gateway.CloseInterfaceRequest();\n request.setInterfaceId(this.interfaceId);\n\n await gateway.callAsync('interface/close', request);\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 * @return 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 * Renumbers devices present on this connection. After renumbering, devices need to be identified again.\n * @param firstAddress This is the address that the device closest to the computer is given.\n * Remaining devices are numbered consecutively.\n * @return Total number of devices that responded to the renumber.\n */\n public async renumberDevices(\n firstAddress: number = 1\n ): Promise<number> {\n if (firstAddress <= 0) {\n throw new TypeError('Invalid value; device addresses are numbered from 1.');\n }\n const request = new gateway.DeviceRenumberRequest();\n request.setInterfaceId(this.interfaceId);\n request.setFirstAddress(firstAddress);\n\n const response = await gateway.callAsync<gateway.DeviceRenumberResponse>(\n 'device/renumber',\n request,\n gateway.DeviceRenumberResponse);\n return response.getNumberDevices();\n }\n\n /**\n * Attempts to detect any devices present on this connection.\n * @param identifyDevices Determines whether device identification should be performed as well.\n * @return Array of detected devices.\n */\n public async detectDevices(\n identifyDevices: boolean = true\n ): Promise<Device[]> {\n const request = new gateway.DeviceDetectRequest();\n request.setInterfaceId(this.interfaceId);\n request.setIdentifyDevices(identifyDevices);\n\n const response = await gateway.callAsync<gateway.DeviceDetectResponse>(\n 'device/detect',\n request,\n gateway.DeviceDetectResponse);\n return response.getDevicesList().map(deviceAddress => this.getDevice(deviceAddress));\n }\n\n /**\n * Stops all of the devices on this connection.\n * @param waitUntilIdle Determines whether the function should return immediately\n * or wait until the devices are stopped.\n * @return The addresses of the devices that were stopped by this command.\n */\n public async stopAll(\n waitUntilIdle: boolean = true\n ): Promise<number[]> {\n const request = new gateway.DeviceOnAllRequest();\n request.setInterfaceId(this.interfaceId);\n request.setWaitUntilIdle(waitUntilIdle);\n\n const response = await gateway.callAsync<gateway.DeviceOnAllResponse>(\n 'device/stop_all',\n request,\n gateway.DeviceOnAllResponse);\n return response.getDeviceAddressesList();\n }\n\n /**\n * Homes all of the devices on this connection.\n * @param waitUntilIdle Determines whether the function should return immediately\n * or wait until the devices are homed.\n * @return The addresses of the devices that were homed by this command.\n */\n public async homeAll(\n waitUntilIdle: boolean = true\n ): Promise<number[]> {\n const request = new gateway.DeviceOnAllRequest();\n request.setInterfaceId(this.interfaceId);\n request.setWaitUntilIdle(waitUntilIdle);\n\n const response = await gateway.callAsync<gateway.DeviceOnAllResponse>(\n 'device/home_all',\n request,\n gateway.DeviceOnAllResponse);\n return response.getDeviceAddressesList();\n }\n\n /**\n * Returns a string that represents the connection.\n * @return A string that represents the connection.\n */\n public toString(): string {\n const request = new gateway.ToStringRequest();\n request.setInterfaceId(this.interfaceId);\n\n const response = gateway.callSync<gateway.ToStringResponse>(\n 'interface/to_string',\n request,\n gateway.ToStringResponse);\n return response.getToStr();\n }\n\n /**\n * Returns default request timeout.\n * @return Default request timeout.\n */\n private _retrieveTimeout(): number {\n const request = new gateway.EmptyInterfaceRequest();\n request.setInterfaceId(this.interfaceId);\n\n const response = gateway.callSync<gateway.GetInterfaceTimeoutResponse>(\n 'interface/get_timeout',\n request,\n gateway.GetInterfaceTimeoutResponse);\n return response.getValue();\n }\n\n /**\n * Sets default request timeout.\n * @param timeout Default request timeout.\n */\n private _changeTimeout(\n timeout: number\n ): void {\n const request = new gateway.SetInterfaceTimeoutRequest();\n request.setInterfaceId(this.interfaceId);\n request.setTimeout(timeout);\n\n gateway.callSync('interface/set_timeout', request);\n }\n\n /**\n * Returns checksum enabled.\n * @return Checksum enabled.\n */\n private _retrieveChecksumEnabled(): boolean {\n const request = new gateway.EmptyInterfaceRequest();\n request.setInterfaceId(this.interfaceId);\n\n const response = gateway.callSync<gateway.GetInterfaceChecksumEnabledResponse>(\n 'interface/get_checksum_enabled',\n request,\n gateway.GetInterfaceChecksumEnabledResponse);\n return response.getValue();\n }\n\n /**\n * Sets checksum enabled.\n * @param isEnabled Checksum enabled.\n */\n private _changeChecksumEnabled(\n isEnabled: boolean\n ): void {\n const request = new gateway.SetInterfaceChecksumEnabledRequest();\n request.setInterfaceId(this.interfaceId);\n request.setIsEnabled(isEnabled);\n\n gateway.callSync('interface/set_checksum_enabled', request);\n }\n\n private _disconnected = new 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.unknownResponse = events.pipe(\n takeUntil(this._disconnected),\n filterEvent<gateway.UnknownResponseEvent.AsObject>('interface/unknown_response'),\n filter(event => event.interfaceId === this.interfaceId),\n map(event => UnknownResponseEvent.fromProtobuf(event))\n );\n\n this.alert = events.pipe(\n takeUntil(this._disconnected),\n filterEvent<gateway.AlertEvent.AsObject>('interface/alert'),\n filter(event => event.interfaceId === this.interfaceId),\n map(event => AlertEvent.fromProtobuf(event))\n );\n\n events.pipe(\n filterEvent<gateway.DisconnectedEvent.AsObject>('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"]}
@@ -1,296 +0,0 @@
1
- "use strict";
2
- // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
- // ============= DO NOT EDIT DIRECTLY ============= //
4
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
- if (k2 === undefined) k2 = k;
6
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
7
- }) : (function(o, m, k, k2) {
8
- if (k2 === undefined) k2 = k;
9
- o[k2] = m[k];
10
- }));
11
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
12
- Object.defineProperty(o, "default", { enumerable: true, value: v });
13
- }) : function(o, v) {
14
- o["default"] = v;
15
- });
16
- var __importStar = (this && this.__importStar) || function (mod) {
17
- if (mod && mod.__esModule) return mod;
18
- var result = {};
19
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
20
- __setModuleDefault(result, mod);
21
- return result;
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.Device = void 0;
25
- const device_settings_1 = require("./device_settings");
26
- const axis_1 = require("./axis");
27
- const all_axes_1 = require("./all_axes");
28
- const warnings_1 = require("./warnings");
29
- const device_identity_1 = require("./device_identity");
30
- const device_io_1 = require("./device_io");
31
- const response_1 = require("./response");
32
- const lockstep_1 = require("./lockstep");
33
- const stream_1 = require("./stream");
34
- const stream_buffer_1 = require("./stream_buffer");
35
- const measurement_1 = require("../measurement");
36
- const gateway = __importStar(require("../gateway"));
37
- /**
38
- * Represents the controller part of one device - may be either a standalone controller or an integrated controller.
39
- */
40
- class Device {
41
- constructor(connection, deviceAddress) {
42
- this._connection = connection;
43
- this._deviceAddress = deviceAddress;
44
- this._settings = new device_settings_1.DeviceSettings(this);
45
- this._io = new device_io_1.DeviceIO(this);
46
- this._allAxes = new all_axes_1.AllAxes(this);
47
- this._warnings = new warnings_1.Warnings(this, 0);
48
- }
49
- /**
50
- * Connection of this device.
51
- */
52
- get connection() {
53
- return this._connection;
54
- }
55
- /**
56
- * The device address uniquely identifies the device on the connection.
57
- * It can be configured or automatically assigned by the renumber command.
58
- */
59
- get deviceAddress() {
60
- return this._deviceAddress;
61
- }
62
- /**
63
- * Settings and properties of this device.
64
- */
65
- get settings() {
66
- return this._settings;
67
- }
68
- /**
69
- * I/O channels of this device.
70
- */
71
- get io() {
72
- return this._io;
73
- }
74
- /**
75
- * Virtual axis which allows you to target all axes of this device.
76
- */
77
- get allAxes() {
78
- return this._allAxes;
79
- }
80
- /**
81
- * Warnings and faults of this device and all its axes.
82
- */
83
- get warnings() {
84
- return this._warnings;
85
- }
86
- /**
87
- * Identity of the device.
88
- */
89
- get identity() {
90
- return this._retrieveIdentity();
91
- }
92
- /**
93
- * Indicates whether or not the device has been identified.
94
- */
95
- get isIdentified() {
96
- return this._retrieveIsIdentified();
97
- }
98
- /**
99
- * Unique ID of the device hardware.
100
- */
101
- get deviceId() {
102
- return this.identity.deviceId;
103
- }
104
- /**
105
- * Serial number of the device.
106
- */
107
- get serialNumber() {
108
- return this.identity.serialNumber;
109
- }
110
- /**
111
- * Name of the product.
112
- */
113
- get name() {
114
- return this.identity.name;
115
- }
116
- /**
117
- * Number of axes this device has.
118
- */
119
- get axisCount() {
120
- return this.identity.axisCount;
121
- }
122
- /**
123
- * Version of the firmware.
124
- */
125
- get firmwareVersion() {
126
- return this.identity.firmwareVersion;
127
- }
128
- /**
129
- * Queries the device and the database, gathering information about the product.
130
- * Without this information features such as unit conversions will not work.
131
- * Usually, called automatically by detect devices method.
132
- * @return Device identification data.
133
- */
134
- async identify() {
135
- const request = new gateway.DeviceIdentifyRequest();
136
- request.setInterfaceId(this.connection.interfaceId);
137
- request.setDevice(this.deviceAddress);
138
- const response = await gateway.callAsync('device/identify', request, gateway.DeviceIdentity);
139
- return device_identity_1.DeviceIdentity.fromProtobuf(response.toObject());
140
- }
141
- /**
142
- * Sends a generic ASCII command to this device.
143
- * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).
144
- * @param command Command and its parameters.
145
- * @param axis Optional axis number to send the command to.
146
- * @param checkErrors Controls whether to throw an exception when the device rejects the command.
147
- * @param timeout The timeout, in milliseconds, for a device to respond to the command.
148
- * Overrides the connection default request timeout.
149
- * @return A response to the command.
150
- */
151
- async genericCommand(command, axis = 0, checkErrors = true, timeout = 0) {
152
- const request = new gateway.GenericCommandRequest();
153
- request.setInterfaceId(this.connection.interfaceId);
154
- request.setDevice(this.deviceAddress);
155
- request.setCommand(command);
156
- request.setAxis(axis);
157
- request.setCheckErrors(checkErrors);
158
- request.setTimeout(timeout);
159
- const response = await gateway.callAsync('interface/generic_command', request, gateway.GenericCommandResponse);
160
- return response_1.Response.fromProtobuf(response.toObject());
161
- }
162
- /**
163
- * Sends a generic ASCII command to this device and expect multiple responses.
164
- * Responses are returned in order of arrival.
165
- * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).
166
- * @param command Command and its parameters.
167
- * @param axis Optional axis number to send the command to.
168
- * @param checkErrors Controls whether to throw an exception when a device rejects the command.
169
- * @param timeout The timeout, in milliseconds, for a device to respond to the command.
170
- * Overrides the connection default request timeout.
171
- * @return All responses to the command.
172
- */
173
- async genericCommandMultiResponse(command, axis = 0, checkErrors = true, timeout = 0) {
174
- const request = new gateway.GenericCommandRequest();
175
- request.setInterfaceId(this.connection.interfaceId);
176
- request.setDevice(this.deviceAddress);
177
- request.setCommand(command);
178
- request.setAxis(axis);
179
- request.setCheckErrors(checkErrors);
180
- request.setTimeout(timeout);
181
- const response = await gateway.callAsync('interface/generic_command_multi_response', request, gateway.GenericCommandResponseCollection);
182
- return response.toObject().responsesList.map(resp => response_1.Response.fromProtobuf(resp));
183
- }
184
- /**
185
- * Sends a generic ASCII command to this device without expecting a response and without adding a message ID
186
- * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).
187
- * @param command Command and its parameters.
188
- * @param axis Optional axis number to send the command to.
189
- */
190
- async genericCommandNoResponse(command, axis = 0) {
191
- const request = new gateway.GenericCommandRequest();
192
- request.setInterfaceId(this.connection.interfaceId);
193
- request.setDevice(this.deviceAddress);
194
- request.setCommand(command);
195
- request.setAxis(axis);
196
- await gateway.callAsync('interface/generic_command_no_response', request);
197
- }
198
- /**
199
- * Gets an Axis class instance which allows you to control a particular axis on this device.
200
- * Axes are numbered from 1.
201
- * @param axisNumber Number of axis intended to control.
202
- * @return Axis instance.
203
- */
204
- getAxis(axisNumber) {
205
- if (axisNumber <= 0) {
206
- throw new TypeError('Invalid value; physical axes are numbered from 1.');
207
- }
208
- return new axis_1.Axis(this, axisNumber);
209
- }
210
- /**
211
- * Gets a Lockstep class instance which allows you to control a particular lockstep group on the device.
212
- * @param lockstepGroupId The ID of the lockstep group to control. Lockstep group IDs start at one.
213
- * @return Lockstep instance.
214
- */
215
- getLockstep(lockstepGroupId) {
216
- if (lockstepGroupId <= 0) {
217
- throw new TypeError('Invalid value; lockstep groups are numbered from 1.');
218
- }
219
- return new lockstep_1.Lockstep(this, lockstepGroupId);
220
- }
221
- /**
222
- * Formats parameters into a command and performs unit conversions.
223
- * Parameters in the command template are denoted by a question mark.
224
- * Command returned is only valid for this device.
225
- * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).
226
- * @param commandTemplate Template of a command to prepare. Parameters are denoted by question marks.
227
- * @param parameters Variable number of command parameters.
228
- * @return Command with converted parameters.
229
- */
230
- prepareCommand(commandTemplate, ...parameters) {
231
- const request = new gateway.PrepareCommandRequest();
232
- request.setInterfaceId(this.connection.interfaceId);
233
- request.setDevice(this.deviceAddress);
234
- request.setCommandTemplate(commandTemplate);
235
- request.setParametersList(parameters.map(measurement_1.Measurement.toProtobuf));
236
- const response = gateway.callSync('device/prepare_command', request, gateway.PrepareCommandResponse);
237
- return response.getCommand();
238
- }
239
- /**
240
- * Returns a string that represents the device.
241
- * @return A string that represents the device.
242
- */
243
- toString() {
244
- const request = new gateway.ToStringRequest();
245
- request.setInterfaceId(this.connection.interfaceId);
246
- request.setDevice(this.deviceAddress);
247
- const response = gateway.callSync('device/device_to_string', request, gateway.ToStringResponse);
248
- return response.getToStr();
249
- }
250
- /**
251
- * Gets a Stream class instance which allows you to control a particular stream on the device.
252
- * @param streamId The ID of the stream to control. Stream IDs start at one.
253
- * @return Stream instance.
254
- */
255
- getStream(streamId) {
256
- if (streamId <= 0) {
257
- throw new TypeError('Invalid value; streams are numbered from 1.');
258
- }
259
- return new stream_1.Stream(this, streamId);
260
- }
261
- /**
262
- * Gets a StreamBuffer class instance which is a handle for a stream buffer on the device.
263
- * @param streamBufferId The ID of the stream buffer to control. Stream buffer IDs start at one.
264
- * @return StreamBuffer instance.
265
- */
266
- getStreamBuffer(streamBufferId) {
267
- if (streamBufferId <= 0) {
268
- throw new TypeError('Invalid value; stream buffers are numbered from 1.');
269
- }
270
- return new stream_buffer_1.StreamBuffer(this, streamBufferId);
271
- }
272
- /**
273
- * Returns identity.
274
- * @return Device identity.
275
- */
276
- _retrieveIdentity() {
277
- const request = new gateway.DeviceGetIdentityRequest();
278
- request.setInterfaceId(this.connection.interfaceId);
279
- request.setDevice(this.deviceAddress);
280
- const response = gateway.callSync('device/get_identity', request, gateway.DeviceGetIdentityResponse);
281
- return device_identity_1.DeviceIdentity.fromProtobuf(response.getIdentity().toObject());
282
- }
283
- /**
284
- * Returns whether or not the device have been identified.
285
- * @return True if the device has already been identified. False otherwise.
286
- */
287
- _retrieveIsIdentified() {
288
- const request = new gateway.DeviceGetIsIdentifiedRequest();
289
- request.setInterfaceId(this.connection.interfaceId);
290
- request.setDevice(this.deviceAddress);
291
- const response = gateway.callSync('device/get_is_identified', request, gateway.DeviceGetIsIdentifiedResponse);
292
- return response.getIsIdentified();
293
- }
294
- }
295
- exports.Device = Device;
296
- //# sourceMappingURL=device.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"device.js","sourceRoot":"","sources":["../../../src-web/ascii/device.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAGtD,uDAAmD;AACnD,iCAA8B;AAC9B,yCAAqC;AACrC,yCAAsC;AACtC,uDAAmD;AACnD,2CAAuC;AACvC,yCAAsC;AACtC,yCAAsC;AACtC,qCAAkC;AAClC,mDAA+C;AAC/C,gDAA6C;AAE7C,oDAAsC;AAEtC;;GAEG;AACH,MAAa,MAAM;IAmGjB,YAAY,UAAsB,EAAE,aAAqB;QACvD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,IAAI,gCAAc,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAG,GA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,CAC/B,0BAA0B,EAC1B,OAAO,EACP,OAAO,CAAC,6BAA6B,CAAC,CAAC;QACzC,OAAO,QAAQ,CAAC,eAAe,EAAE,CAAC;IACpC,CAAC;CACF;AAlVD,wBAkVC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Connection } from './connection';\nimport { DeviceSettings } from './device_settings';\nimport { Axis } from './axis';\nimport { AllAxes } from './all_axes';\nimport { Warnings } from './warnings';\nimport { DeviceIdentity } from './device_identity';\nimport { DeviceIO } from './device_io';\nimport { Response } from './response';\nimport { Lockstep } from './lockstep';\nimport { Stream } from './stream';\nimport { StreamBuffer } from './stream_buffer';\nimport { Measurement } from '../measurement';\nimport { FirmwareVersion } from '../firmware_version';\nimport * as gateway from '../gateway';\n\n/**\n * Represents the controller part of one device - may be either a standalone controller or an integrated controller.\n */\nexport class Device {\n /**\n * Connection of this device.\n */\n public get connection(): Connection {\n return this._connection;\n }\n private _connection: Connection;\n\n /**\n * The device address uniquely identifies the device on the connection.\n * It can be configured or automatically assigned by the renumber command.\n */\n public get deviceAddress(): number {\n return this._deviceAddress;\n }\n private _deviceAddress: number;\n\n /**\n * Settings and properties of this device.\n */\n public get settings(): DeviceSettings {\n return this._settings;\n }\n private _settings: DeviceSettings;\n\n /**\n * I/O channels of this device.\n */\n public get io(): DeviceIO {\n return this._io;\n }\n private _io: DeviceIO;\n\n /**\n * Virtual axis which allows you to target all axes of this device.\n */\n public get allAxes(): AllAxes {\n return this._allAxes;\n }\n private _allAxes: AllAxes;\n\n /**\n * Warnings and faults of this device and all its axes.\n */\n public get warnings(): Warnings {\n return this._warnings;\n }\n private _warnings: Warnings;\n\n /**\n * Identity of the device.\n */\n public get identity(): DeviceIdentity {\n return this._retrieveIdentity();\n }\n\n /**\n * Indicates whether or not the device has been identified.\n */\n public get isIdentified(): boolean {\n return this._retrieveIsIdentified();\n }\n\n /**\n * Unique ID of the device hardware.\n */\n public get deviceId(): number {\n return this.identity.deviceId;\n }\n\n /**\n * Serial number of the device.\n */\n public get serialNumber(): number {\n return this.identity.serialNumber;\n }\n\n /**\n * Name of the product.\n */\n public get name(): string {\n return this.identity.name;\n }\n\n /**\n * Number of axes this device has.\n */\n public get axisCount(): number {\n return this.identity.axisCount;\n }\n\n /**\n * Version of the firmware.\n */\n public get firmwareVersion(): FirmwareVersion {\n return this.identity.firmwareVersion;\n }\n\n constructor(connection: Connection, deviceAddress: number) {\n this._connection = connection;\n this._deviceAddress = deviceAddress;\n this._settings = new DeviceSettings(this);\n this._io = new DeviceIO(this);\n this._allAxes = new AllAxes(this);\n this._warnings = new Warnings(this, 0);\n }\n\n /**\n * Queries the device and the database, gathering information about the product.\n * Without this information features such as unit conversions will not work.\n * Usually, called automatically by detect devices method.\n * @return Device identification data.\n */\n public async identify(): Promise<DeviceIdentity> {\n const request = new gateway.DeviceIdentifyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = await gateway.callAsync<gateway.DeviceIdentity>(\n 'device/identify',\n request,\n gateway.DeviceIdentity);\n return DeviceIdentity.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic ASCII command to this device.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param axis Optional axis number to send the command to.\n * @param checkErrors Controls whether to throw an exception when the device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return A response to the command.\n */\n public async genericCommand(\n command: string,\n axis: number = 0,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommand(command);\n request.setAxis(axis);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponse>(\n 'interface/generic_command',\n request,\n gateway.GenericCommandResponse);\n return Response.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic ASCII command to this device and expect multiple responses.\n * Responses are returned in order of arrival.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param axis Optional axis number to send the command to.\n * @param checkErrors Controls whether to throw an exception when a device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: string,\n axis: number = 0,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response[]> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommand(command);\n request.setAxis(axis);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponseCollection>(\n 'interface/generic_command_multi_response',\n request,\n gateway.GenericCommandResponseCollection);\n return response.toObject().responsesList.map(resp => Response.fromProtobuf(resp));\n }\n\n /**\n * Sends a generic ASCII command to this device without expecting a response and without adding a message ID\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param axis Optional axis number to send the command to.\n */\n public async genericCommandNoResponse(\n command: string,\n axis: number = 0\n ): Promise<void> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommand(command);\n request.setAxis(axis);\n\n await gateway.callAsync('interface/generic_command_no_response', request);\n }\n\n /**\n * Gets an Axis class instance which allows you to control a particular axis on this device.\n * Axes are numbered from 1.\n * @param axisNumber Number of axis intended to control.\n * @return Axis instance.\n */\n public getAxis(\n axisNumber: number\n ): Axis {\n if (axisNumber <= 0) {\n throw new TypeError('Invalid value; physical axes are numbered from 1.');\n }\n return new Axis(this, axisNumber);\n }\n\n /**\n * Gets a Lockstep class instance which allows you to control a particular lockstep group on the device.\n * @param lockstepGroupId The ID of the lockstep group to control. Lockstep group IDs start at one.\n * @return Lockstep instance.\n */\n public getLockstep(\n lockstepGroupId: number\n ): Lockstep {\n if (lockstepGroupId <= 0) {\n throw new TypeError('Invalid value; lockstep groups are numbered from 1.');\n }\n return new Lockstep(this, lockstepGroupId);\n }\n\n /**\n * Formats parameters into a command and performs unit conversions.\n * Parameters in the command template are denoted by a question mark.\n * Command returned is only valid for this device.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param commandTemplate Template of a command to prepare. Parameters are denoted by question marks.\n * @param parameters Variable number of command parameters.\n * @return Command with converted parameters.\n */\n public prepareCommand(\n commandTemplate: string,\n ...parameters: Measurement[]\n ): string {\n const request = new gateway.PrepareCommandRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommandTemplate(commandTemplate);\n request.setParametersList(parameters.map(Measurement.toProtobuf));\n\n const response = gateway.callSync<gateway.PrepareCommandResponse>(\n 'device/prepare_command',\n request,\n gateway.PrepareCommandResponse);\n return response.getCommand();\n }\n\n /**\n * Returns a string that represents the device.\n * @return A string that represents the device.\n */\n public toString(): string {\n const request = new gateway.ToStringRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = gateway.callSync<gateway.ToStringResponse>(\n 'device/device_to_string',\n request,\n gateway.ToStringResponse);\n return response.getToStr();\n }\n\n /**\n * Gets a Stream class instance which allows you to control a particular stream on the device.\n * @param streamId The ID of the stream to control. Stream IDs start at one.\n * @return Stream instance.\n */\n public getStream(\n streamId: number\n ): Stream {\n if (streamId <= 0) {\n throw new TypeError('Invalid value; streams are numbered from 1.');\n }\n return new Stream(this, streamId);\n }\n\n /**\n * Gets a StreamBuffer class instance which is a handle for a stream buffer on the device.\n * @param streamBufferId The ID of the stream buffer to control. Stream buffer IDs start at one.\n * @return StreamBuffer instance.\n */\n public getStreamBuffer(\n streamBufferId: number\n ): StreamBuffer {\n if (streamBufferId <= 0) {\n throw new TypeError('Invalid value; stream buffers are numbered from 1.');\n }\n return new StreamBuffer(this, streamBufferId);\n }\n\n /**\n * Returns identity.\n * @return Device identity.\n */\n private _retrieveIdentity(): DeviceIdentity {\n const request = new gateway.DeviceGetIdentityRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = gateway.callSync<gateway.DeviceGetIdentityResponse>(\n 'device/get_identity',\n request,\n gateway.DeviceGetIdentityResponse);\n return DeviceIdentity.fromProtobuf(response.getIdentity()!.toObject());\n }\n\n /**\n * Returns whether or not the device have been identified.\n * @return True if the device has already been identified. False otherwise.\n */\n private _retrieveIsIdentified(): boolean {\n const request = new gateway.DeviceGetIsIdentifiedRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = gateway.callSync<gateway.DeviceGetIsIdentifiedResponse>(\n 'device/get_is_identified',\n request,\n gateway.DeviceGetIsIdentifiedResponse);\n return response.getIsIdentified();\n }\n}\n"]}