-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added option to parse through TS or DAC #318
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #318 +/- ##
========================================
- Coverage 7.23% 7.22% -0.01%
========================================
Files 25 25
Lines 4439 4440 +1
========================================
Hits 321 321
- Misses 4118 4119 +1
|
Preview page for your plugin is ready here: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. I just realized that the TriggerScope/DAC features are not documented at all. Maybe for another issue...
Thanks @edyoshikun.
Thanks @ziw-liu. I'll move this to a separate issue. |
I realized this will fail if the name of the Triggerscope is back to to 'TS' since the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a permanent solution still. We should allow the users to name their DAQ device arbitrarily, and potentially use an Arduino or NI DAQ instead of a TriggerScope. DACs are registered as SignalIODevice
. We should check for that using mmc. getDeviceType
. Here is the SignalIODevice API: https://github.com/micro-manager/mmCoreAndDevices/blob/77ccd434cb84b86892b5544d1bf17aafa57cacdd/MMDevice/MMDevice.h#L881
@edyoshikun will revisit this in preparation for polarization experiments on mantis. |
There was no need to enumerate the devices as this reads the
State0
config properties and looks for devices withTS
. As long as the channels have been set properly, the current implementation works well.Additionally, there was no current need to add another dropbox for the DAC device, but perhaps in the future if users are are using DACs other than the triggerscope the if/else case should be changed to look for just
DAC
instead.Tested this on Mantis. Fixes #312