Skip to content

Commit

Permalink
drtio: adapt example to new mu/second API
Browse files Browse the repository at this point in the history
sbourdeauducq committed Nov 23, 2016
1 parent cd334c0 commit 5a2edef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artiq/examples/drtio/repository/pulse_rate.py
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ def run(self):
#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 @@ def run(self):
self.core.break_realtime()
break
else:
print(mu_to_seconds(dt))
print(self.core.mu_to_seconds(dt))
return

0 comments on commit 5a2edef

Please sign in to comment.