API Reference v9.2.0
Triggersclass
Module: zaber_motion.ascii
Class providing access to device triggers. Please note that the Triggers API is currently an experimental feature.
Requires at least Firmware 7.06.
The following example illustrates how you can obtain an instance of this type:
from zaber_motion.ascii import Connection
connection = Connection.open_serial_port('COM3')
device = connection.get_device(1)
triggers = device.triggersRelated Guides:
Index
pProperties
Properties
p
Methods
m
m
triggers.get_enabled_states()Gets the enabled state for every trigger for this device.
Return Value
List[TriggerEnabledState] Whether triggers are enabled and the number of times they will fire.m
m
m
triggers.get_trigger(trigger_number)Get a specific trigger for this device.
Arguments
| Name | Type | Description |
|---|---|---|
| trigger_number | int | The number of the trigger to control. Trigger numbers start at 1. |
Return Value
Trigger Trigger instance.m
triggers.get_trigger_states()Get the state for every trigger for this device.
Return Value
List[TriggerState] Complete state for every trigger.