navigate.model.devices.lasers.base.LaserBase
- class navigate.model.devices.lasers.base.LaserBase(microscope_name: str, device_connection: Any, configuration: Dict[str, Any], laser_id: int)
Bases:
object
Laser Base Class
- __init__(microscope_name: str, device_connection: Any, configuration: Dict[str, Any], laser_id: int) → None
Initialize Laser Base Class
- Parameters:
microscope_name (str) – Name of the microscope
device_connection (Any) – Communication instance with the device.
configuration (Dict[str, Any]) – Configuration dictionary
laser_id (int) – Laser ID
Methods
__init__
(microscope_name, device_connection, ...)Initialize Laser Base Class
close
()Close the laser before exit.
Initialize lasers.
set_power
(laser_intensity)Set laser power
turn_off
()Turn off the laser
turn_on
()Turn on the laser
Attributes
Communication instance with the device
Configuration dictionary
Name of the microscope
Laser ID
- close() → None
Close the laser before exit.
- initialize_laser() → None
Initialize lasers.
- set_power(laser_intensity: int) → None
Set laser power
- Parameters:
laser_intensity (int) – Laser intensity
- turn_off() → None
Turn off the laser
- turn_on() → None
Turn on the laser
- configuration
Configuration dictionary
- Type:
dict
- device_config
Laser ID
- Type:
int
- device_connection
Communication instance with the device
- Type:
Any
- microscope_name
Name of the microscope
- Type:
str