We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5161201 commit 1c377ccCopy full SHA for 1c377cc
NI_DAQmx/blacs_workers.py
@@ -205,9 +205,7 @@ def program_buffered_DO(self, DO_table):
205
# Check if DOs are all zero for the whole shot. If they are this triggers a
206
# bug in NI-DAQmx that throws a cryptic error for buffered output. In this
207
# case, run it as a non-buffered task.
208
- self.DO_all_zero = all(
209
- DO_table[port].sum() == 0 for port in DO_table.dtype.names
210
- )
+ self.DO_all_zero = not np.any(DO_table)
211
if self.DO_all_zero:
212
DO_table = DO_table[0:1]
213
0 commit comments