forked from M-Labs/artiq
1
0
Fork 0

examples/pdq2: add break_realtime() b/c compiler, upload, pdq2 config

This commit is contained in:
Robert Jördens 2016-02-25 10:44:05 +01:00
parent 18274a09a1
commit 51e831cec5
2 changed files with 3 additions and 0 deletions

View File

@ -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()

View File

@ -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()