bonsai-rx / daqmx

Bonsai Library for interfacing with NI-DAQmx devices
https://bonsai-rx.org/daqmx
Other
1 stars 4 forks source link

Add support for reading digital input channels #7

Closed glopesdev closed 1 year ago

glopesdev commented 1 year ago

This PR adds support for reading digital input channels both synchronously and asynchronously. In the case of synchronous reads (i.e., an external read trigger source is provided), the SampleRate property may be set to zero (default) for directly sampling the latest state of the digital lines.

AnalogInput was also modified following similar design decisions to allow for synchronous reads.

Fixes #5