forked from M-Labs/artiq
examples/time_test: add loop
This commit is contained in:
parent
041540089a
commit
c5dba6c3b8
|
@ -22,13 +22,16 @@ class TimeTest(MPO):
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def run(self):
|
def run(self):
|
||||||
with parallel:
|
i = 0
|
||||||
with sequential:
|
while i < 3:
|
||||||
self.a.pulse(100, 20*us)
|
with parallel:
|
||||||
self.b.pulse(200, 20*us)
|
with sequential:
|
||||||
with sequential:
|
self.a.pulse(100+i, 20*us)
|
||||||
self.c.pulse(300, 10*us)
|
self.b.pulse(200+i, 20*us)
|
||||||
self.d.pulse(400, 20*us)
|
with sequential:
|
||||||
|
self.c.pulse(300+i, 10*us)
|
||||||
|
self.d.pulse(400+i, 20*us)
|
||||||
|
i += 1
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
with corecom_serial.CoreCom() as com:
|
with corecom_serial.CoreCom() as com:
|
||||||
|
|
Loading…
Reference in New Issue