API Reference v9.2.0

Toolsclass

Module: ZaberMotion

Class providing various utility functions.

To use this type, add import ZaberMotion to the top of your source code.

Methods

s

discoverTcpDevices()

asyncthrows
try await Tools.discoverTcpDevices(duration = 3000, interfaceIpAddress = nil)
Discover Zaber devices shared over local network over TCP/IP.
Arguments
NameTypeDescription
durationIntOptional time in ms to wait for mDNS discovery response (defaults to 3000).
interfaceIpAddressString?Specify which network interface to use by IP address. If no value or an empty string is provided, mDNS query is sent to all compatible network interfaces.
Return Value
[DeviceDiscoveryResult] Array of discovered devices.
s

getMessageRouterPipePath()

throws
try Tools.getMessageRouterPipePath()
Returns path of message router named pipe on Windows or file path of unix domain socket on UNIX.
Return Value
String Path of message router's named pipe or unix domain socket.
s

listSerialPorts()

asyncthrows
try await Tools.listSerialPorts()
Lists all serial ports on the computer.
Return Value
[String] Array of serial port names.