mirror of https://github.com/m-labs/artiq.git
pxi6733: fix verification of the number of buffered sample values
This commit is contained in:
parent
1ce8bbe3ae
commit
966d0ee3f2
|
@ -115,9 +115,9 @@ class DAQmx:
|
||||||
ret = t.WriteAnalogF64(samps_per_channel, False, 0,
|
ret = t.WriteAnalogF64(samps_per_channel, False, 0,
|
||||||
self.daq.DAQmx_Val_GroupByChannel, values,
|
self.daq.DAQmx_Val_GroupByChannel, values,
|
||||||
byref(num_samps_written), None)
|
byref(num_samps_written), None)
|
||||||
if num_samps_written.value != nb_values:
|
if num_samps_written.value != samps_per_channel:
|
||||||
raise IOError("Error: only {} sample values were written"
|
raise IOError("Error: only {} sample values per channel were"
|
||||||
.format(num_samps_written.value))
|
"written".format(num_samps_written.value))
|
||||||
if ret:
|
if ret:
|
||||||
raise IOError("Error while writing samples to the channel buffer")
|
raise IOError("Error while writing samples to the channel buffer")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue