forked from M-Labs/artiq
examples/pdq2: add break_realtime() b/c compiler, upload, pdq2 config
This commit is contained in:
parent
18274a09a1
commit
51e831cec5
|
@ -28,6 +28,8 @@ class PDQ2Simple(EnvExperiment):
|
|||
|
||||
@kernel
|
||||
def one(self):
|
||||
self.core.break_realtime()
|
||||
delay(1*ms)
|
||||
self.load.advance()
|
||||
delay(1*ms)
|
||||
self.detect.advance()
|
||||
|
|
|
@ -72,6 +72,7 @@ class Transport(EnvExperiment):
|
|||
|
||||
@kernel
|
||||
def repeat(self):
|
||||
self.core.break_realtime()
|
||||
hist = [0 for _ in range(self.bins)]
|
||||
for i in range(self.repeats):
|
||||
n = self.one()
|
||||
|
|
Loading…
Reference in New Issue