API Reference v9.2.0

Libraryclass

Module: ZaberMotion

Access class to general library information and configuration.

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

Related Guides:

Methods

s

checkVersion()

throws
Obsolete: Calling this function is no longer necessary as the check happens automatically.
try Library.checkVersion()
Throws an error if the version of the loaded shared library does not match the caller's version.
s

clearDeviceDbStore()

asyncthrows
try await Library.clearDeviceDbStore()
Clears the Device DB store on the local filesystem. Note: If the device DB was enabled with a custom store location, store files will be removed in that location.
s

disableDeviceDbStore()

throws
try Library.disableDeviceDbStore()
Disables Device DB store.
s

enableDeviceDbStore()

throws
try Library.enableDeviceDbStore(storeLocation = nil)
Enables Device DB store. The store uses filesystem to save information obtained from the Device DB. The stored data are later used instead of the Device DB.
Arguments
NameTypeDescription
storeLocationString?Specifies relative or absolute path of the folder used by the store. If left empty defaults to a folder in user home directory. Must be accessible by the process.
s

setDeviceDbSource()

throws
try Library.setDeviceDbSource(sourceType, urlOrFilePath = nil)
Sets source of Device DB data. Allows selection of a web service or a local file.
Arguments
NameTypeDescription
sourceTypeDeviceDbSourceTypeSource type.
urlOrFilePathString?URL of the web service or path to the local file. Leave empty for the default URL of Zaber web service.
s

setDeviceDbSources()

throws
try Library.setDeviceDbSources(...sources)
Sets a sequence of sources. When the library needs device information, it will try each source in the order they are provided.
Arguments
NameTypeDescription
...sources[DeviceDbSource]The list of sources the library will access data from.
s

setLogOutput()

throws
try Library.setLogOutput(mode, filePath = nil)
Sets library logging output.
Arguments
NameTypeDescription
modeLogOutputModeLogging output mode.
filePathString?Path of the file to open.