Camera attempt#43
Merged
Merged
Conversation
Need to look at this bug:
File "C:\Users\Spectral\Anaconda3\envs\ASLM\lib\tkinter\__init__.py", line 1885, in __call__
return self.func(*args)
File "C:\Users\Spectral\Documents\GitHub\ASLM\src\controller\sub_controllers\acquire_bar_controller.py", line 100, in launch_popup_window
self.parent_controller.execute('acquire')
File "C:\Users\Spectral\Documents\GitHub\ASLM\src\controller\aslm_controller.py", line 279, in execute
self.threads_pool.createThread('camera', self.model.acquire_image())
File "C:\Users\Spectral\Documents\GitHub\ASLM\src\model\aslm_model.py", line 70, in acquire_image
self.daq.write_waveforms_to_tasks()
File "C:\Users\Spectral\Documents\GitHub\ASLM\src\model\devices\daq\NI\NIDAQ.py", line 331, in write_waveforms_to_tasks
self.galvo_etl_task.write(self.galvo_and_etl_waveforms)
File "C:\Users\Spectral\Anaconda3\envs\ASLM\lib\site-packages\nidaqmx\task.py", line 1221, in write
self._raise_invalid_write_num_chans_error(
File "C:\Users\Spectral\Anaconda3\envs\ASLM\lib\site-packages\nidaqmx\task.py", line 1092, in _raise_invalid_write_num_chans_error
raise DaqError(
nidaqmx.errors.DaqError: Write cannot be performed, because the number of channels in the data does not match the number of channels in the task.
When writing, supply data for all channels in the task. Alternatively, modify the task to contain the same number of channels as the data written.
Number of Channels in Task: 4
Number of Channels in Data: 1
…SW/ASLM into camera_attempt
No more errors being thrown. Function being called properly, but the camera now hangs. I'm not sure if we are initializing the camera in the proper mode. Checking next.
Now consistent.
Also tried to clean up the Hamamatsu API code to make it slightly more readable. But not much.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@andrewjUTSW Want to pull these changes in? Tested both the synthetic mode and the real mode on the acquisition computer and it seemed to not throw any errors.
Provides minimal framework for us to build up imaging workflows. Camera works. DAQ works. Stage works. Shutters work... Will tune up the lasers next.