API Reference v9.1.0
WdiAutofocusProviderclass
Module: zaber_motion.microscopy
Class representing access to WDI Autofocus connection.
The following example illustrates how you can obtain an instance of this type:
from zaber_motion.microscopy import WdiAutofocusProvider
wdi_autofocus_provider = WdiAutofocusProvider.open_tcp('169.254.64.162')Related Guides:
Index
cConstants
pProperties
Constants
c
Properties
p
wdi_autofocus_provider.firmware_versionFirmwareVersion The firmware version of the connected autofocus.p
Methods
m
wdi_autofocus_provider.generic_read(register_id, size, count = 1, offset = 0, register_bank = "U")Generic read operation.
Arguments
| Name | Type | Description |
|---|---|---|
| register_id | int | Register address to read from. |
| size | int | Data size to read. Valid values are (1,2,4). Determines the data type (Byte, Word, DWord). |
| count | int | Number of values to read (defaults to 1). |
| offset | int | Offset within the register (defaults to 0). |
| register_bank | str | Register bank letter (defaults to U for user bank). |
Return Value
List[int] Array of integers read from the device.m
wdi_autofocus_provider.generic_read_float(register_id, count = 1, offset = 0, register_bank = "U")Generic read operation.
Arguments
| Name | Type | Description |
|---|---|---|
| register_id | int | Register address to read from. |
| count | int | Number of values to read (defaults to 1). |
| offset | int | Offset within the register (defaults to 0). |
| register_bank | str | Register bank letter (defaults to U for user bank). |
Return Value
List[float] Array of floats read from the device.m
wdi_autofocus_provider.generic_write(register_id, size = 0, data = [], offset = 0, register_bank = "U")Generic write operation.
Arguments
| Name | Type | Description |
|---|---|---|
| register_id | int | Register address to write to. |
| size | int | Data size to write. Valid values are (0,1,2,4). Determines the data type (Nil, Byte, Word, DWord). |
| data | List[int] | Array of values to write to the register. Empty array is allowed. |
| offset | int | Offset within the register (defaults to 0). |
| register_bank | str | Register bank letter (defaults to U for user bank). |
m
wdi_autofocus_provider.generic_write_float(register_id, data = [], offset = 0, register_bank = "U")Generic write operation.
Arguments
| Name | Type | Description |
|---|---|---|
| register_id | int | Register address to write to. |
| data | List[float] | Array of values to write to the register. Empty array is allowed. |
| offset | int | Offset within the register (defaults to 0). |
| register_bank | str | Register bank letter (defaults to U for user bank). |
m
wdi_autofocus_provider.get_status()Gets the status of the autofocus.
Return Value
WdiAutofocusProviderStatus The status of the autofocus.s
WdiAutofocusProvider.open_tcp(host_name, port = DEFAULT_TCP_PORT)Opens a TCP connection to WDI autofocus.
Arguments
| Name | Type | Description |
|---|---|---|
| host_name | str | Hostname or IP address. |
| port | int | Optional port number (defaults to 27). |
Return Value
WdiAutofocusProvider An object representing the autofocus connection.