klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
4 stars 3 forks source link

MCC digitalOut bit setting is slow #198

Closed nicholasprice closed 1 year ago

nicholasprice commented 2 years ago

The digitalOut function in the mcc plugin has two options:

  1. write a byte, which is fast, but could upset lines set by other plugins
  2. write a bit, which first polls the current state of the outputs. Polling the current state with DaqDIn is unacceptably slow (>2 frames dropped in my tests). A possible fix is to store the current digital output value as a parameter in the object. I'm happy to implement this approach if nobody can see a drawback.
bartkrekelberg commented 2 years ago

I don't see any issue with #2. Have a look at PR #185

bartkrekelberg commented 1 year ago

See PR #185