Skip to content

Commit

Permalink
Fix bad logic in determining where things occur.
Browse files Browse the repository at this point in the history
  • Loading branch information
dihm committed Nov 18, 2021
1 parent 81b411d commit 052a0f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions labscript_devices/NI_DAQmx/labscript_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,10 @@ def __init__(
# Tell blacs_worker to use AI_start_delay_ticks to define delay
self.start_delay_ticks = True
else:
self.start_delay_ticks = False
raise LabscriptError("You have specified `AI_start_delay = None` but have not provided `AI_start_delay_ticks`.")
else:
raise LabscriptError("You have specified `AI_start_delay = None` but have not provided `AI_start_delay_ticks`.")
# Tells blacs_worker to use AI_start_delay to define delay
self.start_delay_ticks = False
self.num_AO = num_AO
self.num_CI = num_CI
self.ports = ports if ports is not None else {}
Expand Down

0 comments on commit 052a0f0

Please sign in to comment.