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)
lockstep = device.get_lockstep(1)lockstep.get_offsets(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | LengthUnits | Units of position. Uses primary axis unit conversion. |
List[float] Initial offset for each axis of the lockstep group.lockstep.get_position(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | LengthUnits | Units of the position. |
float Primary axis position.lockstep.get_twists(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | LengthUnits | Units of position. Uses primary axis unit conversion. |
List[float] Difference between the initial offset and the actual offset for each axis of the lockstep group.lockstep.move_absolute(position, unit = Units.NATIVE, wait_until_idle = True, velocity = 0, velocity_unit = Units.NATIVE, acceleration = 0, acceleration_unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| position | float | Absolute position. |
| unit | LengthUnits | Units of position. |
| wait_until_idle | bool | Determines whether function should return after the movement is finished or just started. |
| velocity | float | Movement velocity. Default value of 0 indicates that the maxspeed setting is used instead. |
| velocity_unit | VelocityUnits | Units of velocity. |
| acceleration | float | Movement acceleration. Default value of 0 indicates that the accel setting is used instead. |
| acceleration_unit | AccelerationUnits | Units of acceleration. |
lockstep.move_max(wait_until_idle = True, velocity = 0, velocity_unit = Units.NATIVE, acceleration = 0, acceleration_unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| wait_until_idle | bool | Determines whether function should return after the movement is finished or just started. |
| velocity | float | Movement velocity. Default value of 0 indicates that the maxspeed setting is used instead. |
| velocity_unit | VelocityUnits | Units of velocity. |
| acceleration | float | Movement acceleration. Default value of 0 indicates that the accel setting is used instead. |
| acceleration_unit | AccelerationUnits | Units of acceleration. |
lockstep.move_min(wait_until_idle = True, velocity = 0, velocity_unit = Units.NATIVE, acceleration = 0, acceleration_unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| wait_until_idle | bool | Determines whether function should return after the movement is finished or just started. |
| velocity | float | Movement velocity. Default value of 0 indicates that the maxspeed setting is used instead. |
| velocity_unit | VelocityUnits | Units of velocity. |
| acceleration | float | Movement acceleration. Default value of 0 indicates that the accel setting is used instead. |
| acceleration_unit | AccelerationUnits | Units of acceleration. |
lockstep.move_relative(position, unit = Units.NATIVE, wait_until_idle = True, velocity = 0, velocity_unit = Units.NATIVE, acceleration = 0, acceleration_unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| position | float | Relative position. |
| unit | LengthUnits | Units of position. |
| wait_until_idle | bool | Determines whether function should return after the movement is finished or just started. |
| velocity | float | Movement velocity. Default value of 0 indicates that the maxspeed setting is used instead. |
| velocity_unit | VelocityUnits | Units of velocity. |
| acceleration | float | Movement acceleration. Default value of 0 indicates that the accel setting is used instead. |
| acceleration_unit | AccelerationUnits | Units of acceleration. |
lockstep.move_sin(amplitude, amplitude_units, period, period_units, count = 0, wait_until_idle = True)| Name | Type | Description |
|---|---|---|
| amplitude | float | Amplitude of the sinusoidal motion (half of the motion's peak-to-peak range). |
| amplitude_units | LengthUnits | Units of position. |
| period | float | Period of the sinusoidal motion in milliseconds. |
| period_units | TimeUnits | Units of time. |
| count | float | Number of sinusoidal cycles to complete. Must be a multiple of 0.5 If count is not specified or set to 0, the axis will move indefinitely. |
| wait_until_idle | bool | Determines whether function should return after the movement is finished or just started. |
lockstep.move_sin_stop(wait_until_idle = True)| Name | Type | Description |
|---|---|---|
| wait_until_idle | bool | Determines whether function should return after the movement is finished. |
lockstep.move_velocity(velocity, unit = Units.NATIVE, acceleration = 0, acceleration_unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| velocity | float | Movement velocity. |
| unit | VelocityUnits | Units of velocity. |
| acceleration | float | Movement acceleration. Default value of 0 indicates that the accel setting is used instead. |
| acceleration_unit | AccelerationUnits | Units of acceleration. |
lockstep.set_tolerance(tolerance, unit = Units.NATIVE, axis_index = 0)| Name | Type | Description |
|---|---|---|
| tolerance | float | Twist tolerance. |
| unit | LengthUnits | Units of the tolerance. Uses primary axis unit conversion when setting to all axes, otherwise uses specified secondary axis unit conversion. |
| axis_index | int | Optional index of a secondary axis to set the tolerance for. If left empty or set to 0, the tolerance is set to all the secondary axes. |