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 all types of sample data buffers #13

Closed glopesdev closed 1 year ago

glopesdev commented 1 year ago

This PR extends DigitalOutput with overloads accepting all available types of sample data buffers used to write the state of digital output lines. Some NI-DAQ boards expose digital ports with 16 or 32 lines which can only be updated with the corresponding 16-bit or 32-bit overloads.

With this update, both single sample and multi-sample overloads are also supported, and Mat inputs will be automatically converted to the matching buffer type.