API Reference v9.1.0
IlluminatorChannelclass
Module: zaber_motion.microscopy
Use to control a channel (LED lamp) on an illuminator.
Requires at least Firmware 7.09.
The following example illustrates how you can obtain an instance of this type:
from zaber_motion.ascii import Connection
from zaber_motion.microscopy import Microscope
connection = Connection.open_serial_port('COM3')
microscope = Microscope.find(connection)
illuminator = microscope.illuminator
illuminator_channel = illuminator.get_channel(1)Related Guides:
Index
Properties
p
p
p
p
p
Methods
m
illuminator_channel.generic_command(command, check_errors = True, timeout = 0)Sends a generic ASCII command to this channel. For more information refer to: ASCII Protocol Manual.
Arguments
| Name | Type | Description |
|---|---|---|
| command | str | Command and its parameters. |
| check_errors | bool | Controls whether to throw an exception when the device rejects the command. |
| timeout | int | The timeout, in milliseconds, for a device to respond to the command. Overrides the connection default request timeout. |
Return Value
Response A response to the command.m
illuminator_channel.generic_command_multi_response(command, check_errors = True, timeout = 0)Sends a generic ASCII command to this channel and expects multiple responses. Responses are returned in order of arrival. For more information refer to: ASCII Protocol Manual.
Arguments
| Name | Type | Description |
|---|---|---|
| command | str | Command and its parameters. |
| check_errors | bool | Controls whether to throw an exception when a device rejects the command. |
| timeout | int | The timeout, in milliseconds, for a device to respond to the command. Overrides the connection default request timeout. |
Return Value
List[Response] All responses to the command.m
illuminator_channel.generic_command_no_response(command)Sends a generic ASCII command to this channel without expecting a response and without adding a message ID For more information refer to: ASCII Protocol Manual.
Arguments
| Name | Type | Description |
|---|---|---|
| command | str | Command and its parameters. |
m
m
m
m
illuminator_channel.on(duration = None)Turns this channel on.
Arguments
| Name | Type | Description |
|---|---|---|
| duration | Optional[Measurement] | Duration for which to turn the channel on. If not specified, the channel remains on until turned off. |
m
m
m
illuminator_channel.set_state(state)Applies a saved state to this channel.
Arguments
| Name | Type | Description |
|---|---|---|
| state | str | The state object to apply to this channel. |
Return Value
SetStateAxisResponse Reports of any issues that were handled, but caused the state to not be exactly restored.