forked from M-Labs/artiq
1
0
Fork 0

examples/photon_histogram: delay after count()

This commit is contained in:
Sebastien Bourdeauducq 2016-05-07 18:28:07 +08:00
parent 18b6718d0c
commit 85ecb900df
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ class PhotonHistogram(EnvExperiment):
total = 0
for i in range(self.repeats):
delay(0.5*ms)
n = self.cool_detect()
if n >= self.nbins:
n = self.nbins - 1