Skip to content

Commit 052a0f0

Browse files
committed
Fix bad logic in determining where things occur.
1 parent 81b411d commit 052a0f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

labscript_devices/NI_DAQmx/labscript_devices.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,10 @@ def __init__(
236236
# Tell blacs_worker to use AI_start_delay_ticks to define delay
237237
self.start_delay_ticks = True
238238
else:
239-
self.start_delay_ticks = False
239+
raise LabscriptError("You have specified `AI_start_delay = None` but have not provided `AI_start_delay_ticks`.")
240240
else:
241-
raise LabscriptError("You have specified `AI_start_delay = None` but have not provided `AI_start_delay_ticks`.")
241+
# Tells blacs_worker to use AI_start_delay to define delay
242+
self.start_delay_ticks = False
242243
self.num_AO = num_AO
243244
self.num_CI = num_CI
244245
self.ports = ports if ports is not None else {}

0 commit comments

Comments
 (0)