navigate.model.devices.laser.ni.NILaser
- class navigate.model.devices.laser.ni.NILaser(microscope_name: str, device_connection: Any, configuration: Dict[str, Any], device_id: int)
-
LaserNI Class
This class is used to control a laser connected to a National Instruments DAQ.
- __init__(microscope_name: str, device_connection: Any, configuration: Dict[str, Any], device_id: int) → None
Initialize the LaserNI class.
- Parameters:
microscope_name (str) – The microscope name.
device_connection (Any) – The device connection object.
configuration (Dict[str, Any]) – The device configuration.
device_id (int) – The laser id.
Methods
__init__
(microscope_name, device_connection, ...)Initialize the LaserNI class.
close
()Close the NI Task before exit.
Initialize the analog modulation of the laser.
Initialize the digital modulation of the laser.
Initialize lasers.
set_power
(laser_intensity)Sets the analog laser power.
turn_off
()Turns off the laser.
turn_on
()Turns on the laser.
Attributes
The modulation type of the laser - Analog, Digital, or Mixed.
Modulation type of the laser - Analog or Digital.
The minimum digital modulation voltage.
The maximum digital modulation voltage.
The laser digital modulation task.
The minimum analog modulation voltage.
The maximum analog modulation voltage.
The laser analog modulation task.
- close() → None
Close the NI Task before exit.
- initialize_analog_modulation() → None
Initialize the analog modulation of the laser.
- initialize_digital_modulation() → None
Initialize the digital modulation of the laser.
- initialize_laser() → None
Initialize lasers.
- 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.
- configuration
Configuration dictionary
- Type:
dict
- device_config
Laser ID
- Type:
int
- device_connection
Communication instance with the device
- Type:
Any
- digital_port_type
Modulation type of the laser - Analog or Digital.
- Type:
str
- laser_ao_task
The laser analog modulation task.
- Type:
nidaqmx.Task
- laser_do_task
The laser digital modulation task.
- Type:
nidaqmx.Task
- 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