dlab.hardware.wrappers.andor_controller module

class dlab.hardware.wrappers.andor_controller.AndorController(device_index: int = 0)[source]

Bases: object

Controller for an Andor SDK2 camera via pylablib.

activate() None[source]

Initialize and configure the camera.

capture_single(exposure_us: int | None = None, timeout_s: float = 20.0) numpy.ndarray[source]

Capture a single frame with optional exposure override.

property current_exposure: int | None

Current exposure time in microseconds.

deactivate() None[source]

Close the camera connection.

get_image_shape() tuple[int, ...][source]

Return the image dimensions.

is_active() bool[source]

Check if camera is activated.

set_exposure(exposure_us: int) None[source]

Set exposure time in microseconds.

exception dlab.hardware.wrappers.andor_controller.AndorControllerError[source]

Bases: Exception

Raised for Andor camera operation errors.