2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

drtio: adapt example to new mu/second API

This commit is contained in:
Sebastien Bourdeauducq 2016-11-23 12:43:17 +08:00
parent cd334c0ecf
commit 5a2edef422

View File

@ -11,7 +11,7 @@ class PulseRate(EnvExperiment):
#self.core.reset()
self.core.break_realtime()
dt = seconds_to_mu(300*ns)
dt = self.core.seconds_to_mu(300*ns)
while True:
for i in range(10000):
try:
@ -22,5 +22,5 @@ class PulseRate(EnvExperiment):
self.core.break_realtime()
break
else:
print(mu_to_seconds(dt))
print(self.core.mu_to_seconds(dt))
return