@@ -513,7 +513,7 @@ def start_device(
513513 device_not_found (microscope_name , device_category , device_type , device_id )
514514
515515
516- def start_daq (configuration : Dict [str , Any ], device_type : str = "NI" ) -> DAQBase :
516+ def start_daq (configuration : Dict [str , Any ], device_type : str = "NI" , name : str = "name" ) -> DAQBase :
517517 """Initializes the data acquisition (DAQ) class on a dedicated thread.
518518
519519 Load daq information from the configuration file. Proper daq types include NI and
@@ -537,6 +537,11 @@ def start_daq(configuration: Dict[str, Any], device_type: str = "NI") -> DAQBase
537537
538538 return NIDAQ (configuration )
539539
540+ elif device_type == "asi.ASI" :
541+ # from navigate.model.devices.daq.asi import ASIDaq
542+ # name = "Microscope-0"
543+ return start_device (name , configuration , "daq" )
544+
540545 elif device_type .lower ().startswith ("synthetic" ):
541546 from navigate .model .devices .daq .synthetic import SyntheticDAQ
542547
@@ -615,6 +620,9 @@ def load_devices(
615620 ]["hardware" ]["type" ]
616621
617622 if device_type not in devices_dict ["daq" ]:
618- devices_dict ["daq" ][device_type ] = start_daq (configuration , device_type )
623+ if (device_type == "asi.ASI" ):
624+ devices_dict ["daq" ][device_type ] = start_daq (configuration , device_type , microscope_name )
625+ else :
626+ devices_dict ["daq" ][device_type ] = start_daq (configuration , device_type )
619627
620628 return devices_dict
0 commit comments