navigate.model.devices.shutter.ni.NIShutter
- class navigate.model.devices.shutter.ni.NIShutter(microscope_name: str, device_connection: Any, configuration: Dict[str, Any], *args: Optional[Any], **kwargs: Optional[Any])
Bases:
ShutterBase
ShutterTTL Class
Triggering for shutters delivered from DAQ using digital outputs. Each output keeps their last digital state for as long the device is not powered down.
- __init__(microscope_name: str, device_connection: Any, configuration: Dict[str, Any], *args: Optional[Any], **kwargs: Optional[Any]) → None
Initialize the ShutterTTL.
- Parameters:
microscope_name (str) – Name of microscope in configuration
device_connection (Any) – Hardware device to connect to
configuration (Dict[str, Any]) – Global configuration of the microscope
Methods
__init__
(microscope_name, device_connection, ...)Initialize the ShutterTTL.
Close the shutter
Open the shutter
Attributes
Return the state of both shutters
NI Data Acquisition Digital Output Task
- close_shutter()
Close the shutter
- open_shutter()
Open the shutter
- configuration
Global configuration of the microscope
- Type:
Dict[str, Any]
- device_connection
Hardware device to connect to
- Type:
Any
- microscope_name
Name of the microscope
- Type:
str
- shutter_state
Shutter state
- Type:
bool
- shutter_task
NI Data Acquisition Digital Output Task
- Type:
nidaqmx.Task
- property state
Return the state of both shutters
- Returns:
shutter_state – State of the shutter.
- Return type:
bool