Open bkeryan opened 2 months ago
I don't think the first bit of code there works either if you have multi-device tasks. Fun fun!
samp_size_in_bits = channels_to_read.ai_raw_samp_size
has_negative_range = channels_to_read.ai_rng_low < 0
This also affects read_into
. That function doesn't have a number_of_samples_per_channel
parameter, so it tries to infer the number of samples per channel based on the ndarray size in bytes and the number of channels to read.
Perhaps read
and read_all
should have a dtype
parameter and read_into
should have a number_of_samples_per_channel
parameter.
Calling
task.in_stream.read()
with different input/output ranges for each channel returns an error.Steps to reproduce:
Expected result: it prints the raw data.
Actual result:
Workaround: set
task.ai_channels.all.ai_rng_high
/low
ortask.ao_channels.all.ao_dac_rng_high
/low
.