Skip to content
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

Sending samples again whilst Zapit is waiting to present will result in an error #130

Open
raacampbell opened this issue Aug 7, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@raacampbell
Copy link
Contributor

Running send samples once with a hardware trigger puts the DAQ into a waiting mode. If the send samples command is run a second time, an error is generated. It is not clear to the user what has happened. There should be some way of stopping this. Two options

  1. Ideally it is possible to read back from the DAQ that it's waiting for a trigger and we do not run sendSamples if this is the case.
  2. Alternatively we implement this in software. Setting a bool to true after sendSamples runs and false when stopOptoStim is run. The downside here is the user can't switch between stimuli quickly, which possibly they will want to do.
@raacampbell raacampbell added the bug Something isn't working label Aug 7, 2023
@raacampbell raacampbell self-assigned this Aug 7, 2023
@raacampbell
Copy link
Contributor Author

3af409d makes this the case for finite stimuli. For continuous it will switch from one stimulus set to the other with out warning. Maybe this is OK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant