ni / nidaqmx-python

A Python API for interacting with NI-DAQmx
Other
428 stars 154 forks source link

Task.read has inconsistent return type between normal AI and power channels #527

Open bkeryan opened 6 months ago

bkeryan commented 6 months ago

For normal AI channels, leaving samples_to_read unset reduces the dimensions of the resulting list:

However, for power channels, explicitly setting samples_to_read=1 has the same effect:

Passing samps_per_chan=1 to task.read() returns a different data type, which may cause errors for programs that don't expect that to happen.