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:

Methods

s

check_version()

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

clear_device_db_store()

async available
Library.clear_device_db_store()
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

disable_device_db_store()

Library.disable_device_db_store()
Disables Device DB store.
s

enable_device_db_store()

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
NameTypeDescription
store_locationOptional[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

set_device_db_source()

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
NameTypeDescription
source_typeDeviceDbSourceTypeSource type.
url_or_file_pathOptional[str]URL of the web service or path to the local file. Leave empty for the default URL of Zaber web service.
s

set_device_db_sources()

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
NameTypeDescription
*sourcesDeviceDbSourceThe list of sources the library will access data from.
s

set_log_output()

Library.set_log_output(mode, file_path = None)
Sets library logging output.
Arguments
NameTypeDescription
modeLogOutputModeLogging output mode.
file_pathOptional[str]Path of the file to open.