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
|
@kernel
|
||||||
def one(self):
|
def one(self):
|
||||||
|
self.core.break_realtime()
|
||||||
|
delay(1*ms)
|
||||||
self.load.advance()
|
self.load.advance()
|
||||||
delay(1*ms)
|
delay(1*ms)
|
||||||
self.detect.advance()
|
self.detect.advance()
|
||||||
|
|
|
@ -72,6 +72,7 @@ class Transport(EnvExperiment):
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def repeat(self):
|
def repeat(self):
|
||||||
|
self.core.break_realtime()
|
||||||
hist = [0 for _ in range(self.bins)]
|
hist = [0 for _ in range(self.bins)]
|
||||||
for i in range(self.repeats):
|
for i in range(self.repeats):
|
||||||
n = self.one()
|
n = self.one()
|
||||||
|
|
Loading…
Reference in New Issue