You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using an ASI MS2000 xyz stage without defining an "f" or "theta" axis. The single acquisition and continuous scan acquisition modes both worked without issues. However, when attempting to acquire a z-stack, we encountered a traceback indicating that there were no active channels selected when programming the DAQ ao waveform. The model debug log further indicated a KeyError related to the microscope configuration.
Steps to Reproduce
Set up microscope configuration without an "f" axis mapping.
Select at least 1 channel and set at least 2 z positions.
Start z-stack acquisition.
Observe error.
Expected Behavior
The error should be handled gracefully if no "f" axis exists in the microscope configuration.
**Traceback**
Traceback (most recent call last):
File "C:\Users\qi2lab\Documents\github\asi_navigate\navigate\src\navigate\model\devices\lasers\laser_ni.py", line 147, in set_power
self.laser_ao_task.write(scaled_laser_voltage, auto_start=True)
File "C:\Users\qi2lab\miniconda3\envs\ASInavigate\lib\site-packages\nidaqmx\task.py", line 1169, in write
channels_to_write = self.channels
File "C:\Users\qi2lab\miniconda3\envs\ASInavigate\lib\site-packages\nidaqmx\task.py", line 167, in channels
return Channel._factory(
File "C:\Users\qi2lab\miniconda3\envs\ASInavigate\lib\site-packages\nidaqmx\_task_modules\channels\channel.py", line 118, in _factory
check_for_error(error_code)
File "C:\Users\qi2lab\miniconda3\envs\ASInavigate\lib\site-packages\nidaqmx\errors.py", line 127, in check_for_error
raise DaqError(error_buffer.value.decode("utf-8"), error_code)
nidaqmx.errors.DaqError: Specified operation cannot be performed when there are no channels in the task.
Task Name: _unnamedTask<4>
Status Code: -200478
Bug Description
We are using an ASI MS2000 xyz stage without defining an "f" or "theta" axis. The single acquisition and continuous scan acquisition modes both worked without issues. However, when attempting to acquire a z-stack, we encountered a traceback indicating that there were no active channels selected when programming the DAQ ao waveform. The model debug log further indicated a KeyError related to the microscope configuration.
Steps to Reproduce
Expected Behavior
The error should be handled gracefully if no "f" axis exists in the microscope configuration.
Logs and Configurations
model_error.log
model_info.log
model_performance.log
performance.log
view_controller_debug.log
view_controller_info.log
model_debug.log
Microscope configuration (cannot drag and drop)
microscopes:
Nanoscale:
daq:
hardware:
name: Dev2
type: NI
Resolution
Kevin helped us modified the stage configuration to include a synthetic stage with "f" and "theta" axis.
The text was updated successfully, but these errors were encountered: