navigate.model.devices.galvo.ni.NIGalvo
- class navigate.model.devices.galvo.ni.NIGalvo(microscope_name: str, device_connection: Any, configuration: Dict[str, Any], device_id: int = 0)
-
GalvoNI Class - NI DAQ Control of Galvanometers
- __init__(microscope_name: str, device_connection: Any, configuration: Dict[str, Any], device_id: int = 0) → None
Initialize the GalvoNI class.
- Parameters:
microscope_name (str) – Name of the microscope.
device_connection (Any) – Connection to the NI DAQ device.
configuration (Dict[str, Any]) – Dictionary of configuration parameters.
device_id (int) – Galvo ID. Default is 0.
Methods
__init__
(microscope_name, device_connection, ...)Initialize the GalvoNI class.
adjust
(exposure_times, sweep_times)Adjust the galvo to the readout time
turn_off
()Turn off the galvo.
Attributes
Name of the microscope.
Configuration parameters.
Galvo ID.
Name of the NI port for galvo control.
NI DAQ device connection.
- adjust(exposure_times, sweep_times) → Dict[str, Any]
Adjust the galvo to the readout time
- Parameters:
exposure_times (dict) – Dictionary of exposure times for each selected channel
sweep_times (dict) – Dictionary of sweep times for each selected channel
- Returns:
Dictionary with the adjusted waveforms.
- Return type:
waveform_dict
- turn_off() → None
Turn off the galvo. Turns off the galvo. NOTE: This will only work if there isn’t another task bound to this channel. This should only be called in microscope.terminate().
- camera_delay
Camera delay
- Type:
float
- configuration
Configuration parameters.
- Type:
dict
- daq
NI DAQ device connection.
- Type:
obj
- device_config
Dictionary of device connections.
- Type:
dict
- device_connection
Device connection.
- Type:
Any
- galvo_id
Galvo ID.
- Type:
int
- galvo_max_voltage
Galvo max voltage.
- Type:
float
- galvo_min_voltage
Galvo min voltage.
- Type:
float
- galvo_name
Name of the galvo.
- Type:
str
- galvo_waveform
Galvo waveform. Waveform or Sawtooth.
- Type:
str
- microscope_name
Name of the microscope.
- Type:
str
- sample_rate
Sample rate.
- Type:
int
- sweep_time
Sweep time.
- Type:
float
- trigger_source
Name of the NI port for galvo control.
- Type:
str
- waveform_dict
Dictionary of galvo waveforms.
- Type:
dict