Zaber#
- class phobos.classes.pupil_mask.Zaber(session, id)[source]#
Bases:
objectClass to control the Zaber motors (axis).
- id#
ID of the Zaber motor.
- Type:
int
- __init__(session, id)[source]#
- Parameters:
session (serial.Serial) – Serial connection to the Zaber motor.
id (int) – ID of the Zaber motor.
- send_command(command)[source]#
Send a command to the motor and return the response.
- Parameters:
command (str) – Command to send to the motor.
- Returns:
Response from the motor.
- Return type:
str
- get() int[source]#
Get the current position of the motor.
- Returns:
Current position of the motor (in steps).
- Return type:
int