dlab.hardware.wrappers.thorlabs_controller module

class dlab.hardware.wrappers.thorlabs_controller.ThorlabsController(motor_id: int)[source]

Bases: object

activate(homing: bool = True) None[source]

Instantiate the motor handle and optionally home.

disable() None[source]

Disable the motor and drop the handle.

get_position() float | None[source]

Return the current position, or None if not activated.

home(blocking: bool = True) None[source]

Send the motor to its home position.

identify() None[source]

Flash the device LED to identify the unit.

move_to(position: float, blocking: bool = True) None[source]

Move the motor to an absolute position (device units).

exception dlab.hardware.wrappers.thorlabs_controller.ThorlabsNotActivatedError[source]

Bases: RuntimeError

Raised when an operation requires an activated motor.