API Reference v9.1.0
AxisGroupclass
Module: zaber_motion.ascii
Groups multiple axes across devices into a single group to allow for simultaneous movement. Note that the movement is not coordinated and trajectory is inconsistent and not repeatable between calls. Make sure that any possible trajectory is clear of potential obstacles. The movement methods return after all the axes finish the movement successfully or throw an error as soon as possible.
The following example illustrates how you can obtain an instance of this type:
from zaber_motion.ascii import AxisGroup
from zaber_motion.ascii import Connection
connection = Connection.open_serial_port('COM3')
device = connection.get_device(1)
axis = device.get_axis(1)
axis_group = AxisGroup([axis])Index
pProperties
Constructor
AxisGroup(axes)Initializes the group with the axes to be controlled.
Arguments
| Name | Type | Description |
|---|---|---|
| axes | List[Axis] | Axes of the group. |
Properties
p
Methods
m
axis_group.get_position(*unit)Returns current axes position. The positions are requested sequentially. The result position may not be accurate if the axes are moving.
Arguments
| Name | Type | Description |
|---|---|---|
| *unit | LengthUnits | Units of position. You can specify units once or for each axis separately. |
Return Value
List[float] Axes position.m
m
m
axis_group.move_absolute(*position)Moves the axes to absolute position.
Arguments
| Name | Type | Description |
|---|---|---|
| *position | Measurement | Position. |
m
m
m
axis_group.move_relative(*position)Move axes to position relative to the current position.
Arguments
| Name | Type | Description |
|---|---|---|
| *position | Measurement | Position. |
m