API Reference v9.2.0
Libraryclass
Module: zaber_motion
Access class to general library information and configuration.
To use this type, add from zaber_motion import Library to the top of your source code.
Related Guides:
Index
Methods
s
s
s
Library.enable_device_db_store(store_location = None)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 |
|---|---|---|
| store_location | Optional[str] | 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
Library.set_device_db_source(source_type, url_or_file_path = None)Sets source of Device DB data. Allows selection of a web service or a local file.
Arguments
| Name | Type | Description |
|---|---|---|
| source_type | DeviceDbSourceType | Source type. |
| url_or_file_path | Optional[str] | URL of the web service or path to the local file. Leave empty for the default URL of Zaber web service. |
s
Library.set_device_db_sources(*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
Library.set_log_output(mode, file_path = None)Sets library logging output.
Arguments
| Name | Type | Description |
|---|---|---|
| mode | LogOutputMode | Logging output mode. |
| file_path | Optional[str] | Path of the file to open. |