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:
Index
Methods
s
s
s
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
| Name | Type | Description |
|---|---|---|
| storeLocation | String? | 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
try Library.setDeviceDbSource(sourceType, urlOrFilePath = nil)Sets source of Device DB data. Allows selection of a web service or a local file.
Arguments
| Name | Type | Description |
|---|---|---|
| sourceType | DeviceDbSourceType | Source type. |
| urlOrFilePath | String? | URL of the web service or path to the local file. Leave empty for the default URL of Zaber web service. |
s
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
| Name | Type | Description |
|---|---|---|
| ...sources | [DeviceDbSource] | The list of sources the library will access data from. |
s
try Library.setLogOutput(mode, filePath = nil)Sets library logging output.
Arguments
| Name | Type | Description |
|---|---|---|
| mode | LogOutputMode | Logging output mode. |
| filePath | String? | Path of the file to open. |