ni / nidaqmx-python

A Python API for interacting with NI-DAQmx
Other
413 stars 155 forks source link

Digital reader/writer classes don't support multi-sample line reads/writes #584

Open bkeryan opened 2 months ago

bkeryan commented 2 months ago

The digital line read/write methods in DigitalSingleChannelReader, DigitalMultiChannelReader, DigitalSingleChannelWriter, and DigitalMultiChannelWriter only support single-sample reads/writes, not multi-sample reads/writes.

Note: The underlying C API functions, DAQmxReadDigitalLines and DAQmxWriteDigitalLines, support multi-channel, multi-sample, multi-line reads and writes, where the data is basically a 3D array of (channels, samples, lines) or (samples, channels, lines) depending on fill mode.

Workaround: use the simplified task.read() and task.write() methods.

When this is fixed, we should update the internal test_cached_samples.py test.