Skip to content

Commit bbef07e

Browse files
committed
Added #79
1 parent 48b5f7a commit bbef07e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

application.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,11 +1228,18 @@ def experiment(self):
12281228
# Delay instruments
12291229
for pulse in self._bnc:
12301230
if pulse[BNC.STATE] == "1":
1231-
pulse[BNC.DELAY] = \
1232-
float(pulse.experimentTuple[BNC.DELAY].get()) \
1233-
+ n_d * \
1234-
float(pulse.experimentTuple[BNC.dPHASE].get())
1235-
1231+
if pulse.experimentTuple[BNC.PHASE_BASE].get() == "1":
1232+
pulse[BNC.DELAY] = \
1233+
float(pulse.experimentTuple[BNC.DELAY].get()) \
1234+
+ n_d * \
1235+
float(pulse.experimentTuple[BNC.dPHASE].get())
1236+
else:
1237+
pulse[BNC.DELAY] = \
1238+
float(pulse.experimentTuple[BNC.DELAY].get()) \
1239+
+ (float(
1240+
pulse.experimentTuple[BNC.PHASE_BASE].get()
1241+
) ** n_d) * \
1242+
float(pulse.experimentTuple[BNC.dPHASE].get())
12361243
del tp_scopes
12371244

12381245
# END OF DELAY LOOP

0 commit comments

Comments
 (0)