navigate.model.devices.laser.asi.ASILaser
- class navigate.model.devices.laser.asi.ASILaser(microscope_name: str, device_connection: Any, configuration: dict[str, Any], device_id: int)
Bases:
LaserBase,SerialDevice- __init__(microscope_name: str, device_connection: Any, configuration: dict[str, Any], device_id: int) → None
Initialize the ASILaser class.
- Parameters:
microscope_name (str) – The microscope name.
device_connection (TigerController) – The device connection object.
configuration (dict) – The device configuration.
device_id (int) – The laser id.
Methods
__init__(microscope_name, device_connection, ...)Initialize the ASILaser class.
close()Close the ASI Laser serial port.
connect(port[, baudrate, timeout])Build ASILaser Serial Port connection
Disconnect from serial device.
Initialize the analog modulation of the laser.
Initialize the digital modulation of the laser.
set_power(laser_intensity)Sets the analog laser power.
turn_off()Turns off the laser.
turn_on()Turns on the laser.
Attributes
- close() → None
Close the ASI Laser serial port.
Turns the laser off and then closes the port.
- classmethod connect(port: str, baudrate: int = 115200, timeout: float = 0.25) → navigate.model.devices.APIs.asi.asi_tiger_controller.TigerController
Build ASILaser Serial Port connection
- Parameters:
port (str) – Port for communicating with the filter wheel, e.g., COM1.
baudrate (int) – Baud rate for communicating with the filter wheel, default is 115200.
timeout (float) – Timeout for communicating with the filter wheel, default is 0.25.
- Returns:
tiger_controller – ASI Tiger Controller object.
- Return type:
TigerController
- disconnect() → None
Disconnect from serial device.
- initialize_analog_modulation() → None
Initialize the analog modulation of the laser.
- initialize_digital_modulation() → None
Initialize the digital modulation of the laser.
- set_power(laser_intensity: float) → None
Sets the analog laser power.
- Parameters:
laser_intensity (float) – The laser intensity.
- turn_off() → None
Turns off the laser.
- turn_on() → None
Turns on the laser.
- analog_axis
The analog modulation axis on the Tiger controller.
- Type:
str
- configuration
Configuration dictionary
- Type:
dict
- configuration_schema = {'onoff/hardware/axis': SettingSpec(value_type=<class 'str'>, default='', label='On/Off Axis', help_text='ASI controller axis used to switch the laser.', choices=None, choice_values=None, minimum=None, exclusive_minimum=None, maximum=None, step=None, required=False, dynamic_source=None, depends_on=None), 'power/hardware/axis': SettingSpec(value_type=<class 'str'>, default='B', label='Power Axis', help_text='ASI controller axis used for laser-power control.', choices=None, choice_values=None, minimum=None, exclusive_minimum=None, maximum=None, step=None, required=False, dynamic_source=None, depends_on=None)}
ASILaser - Class for controlling ASI Lasers
This class is used to control a laser connected to a ASI Device.
- device_config
Laser ID
- Type:
int
- device_connection
Communication instance with the device
- Type:
Any
- device_name
Name of the device, used as a unique identifier.
- Type:
str
- digital_axis
The digital modulation axis on the Tiger controller.
- Type:
str
- laser
ASI Tiger Controller object.
- Type:
TigerController
- laser_max_ao
The maximum analog modulation voltage.
- Type:
float
- laser_max_do
The maximum digital modulation voltage.
- Type:
float
- laser_min_ao
The minimum analog modulation voltage.
- Type:
float
- laser_min_do
The minimum digital modulation voltage.
- Type:
float
- microscope_name
Name of the microscope
- Type:
str
- modulation_type
The modulation type of the laser - Analog, Digital, or Mixed.
- Type:
str
- unique_id
Unique identifier for the device,
serial_followed by the port.- Type:
str