Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Add support for DAQ hardware I/O Input trigger #9

Open
ChucklesOnGitHub opened this issue Mar 21, 2023 · 3 comments
Open

Add support for DAQ hardware I/O Input trigger #9

ChucklesOnGitHub opened this issue Mar 21, 2023 · 3 comments

Comments

@ChucklesOnGitHub
Copy link

In the Miniscope DAQ-QT software, setting the input from low to high in the DAQ Input trigger I/O channel starts the recording and high to low stops the recording.

After acquisition is stopped, miniscope LED stays on in both Bonsai and Miniscope DAQ-QT. In the DAQ-QT soft triggerable mode, the scope LED is turned on and off.

@ChucklesOnGitHub ChucklesOnGitHub changed the title Add support for hardware I/O Input trigger Add support for DAQ hardware I/O Input trigger Mar 21, 2023
@ChucklesOnGitHub
Copy link
Author

Thanks Jon for adding the hardware trigger functionality in version 1.3.0. It seems the program now stops the incoming stream of data when the Input Trigger line on the Miniscope DAQ is set to HIGH.
This is different from the Miniscope-DAQ-QT implementation, I'm guessing because they have a separate triggerable mode and in Bonsai the miniscope acquisition just starts when you start the workflow.
The other difference in functionality is that when the DAQ is triggered the LED does not toggle on and off. We should consider adding this.

Here is a diagram of both implementatations as far as I can see:

image
image

@jonnew
Copy link
Member

jonnew commented Jan 11, 2024

OK, I've redone this functionality in 32b5377. Now the state of the trigger input pin is packaged with the output type of the MiniscopeV4 node. It can then be used upstream to gate the frames, make new files or whatever. Additionally, I added a new property "LEDRespectsTrigger". If set to true, the LED will turn off when the trigger input is low. Additionally, I updated the ExampleWorkflows folder with a workflow that shows how to use the new Trigger field of output frames to gate the frame stream.

image

@jonnew
Copy link
Member

jonnew commented Jan 11, 2024

I updated the package as well, you should be able to update in the package Bonsai package manager to test

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants