Skip to content

Commit

Permalink
Update daqmx.py
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g committed Jan 28, 2021
1 parent 35e565d commit 66efa02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def update_task(self, channels=[], clock_settings=ClockSettings(), trigger_setti
pass

elif channel.source == 'Analog_Output': # Analog_Output
if clock_settings.Nsamples > 1 and err_code is 0:
if clock_settings.Nsamples > 1 and err_code == 0:
if clock_settings.repetition:
mode = PyDAQmx.DAQmx_Val_ContSamps
else:
Expand Down

0 comments on commit 66efa02

Please sign in to comment.