forked from M-Labs/artiq
1
0
Fork 0
This commit is contained in:
Sebastien Bourdeauducq 2015-08-28 16:30:33 +08:00
parent 031d8d0890
commit 1cace1cd91
2 changed files with 2 additions and 1 deletions

View File

@ -95,6 +95,7 @@ Create a new file ``rtio.py`` containing the following: ::
from artiq import * from artiq import *
class Tutorial(EnvExperiment): class Tutorial(EnvExperiment):
def build(self): def build(self):
self.attr_device("core") self.attr_device("core")
@ -115,6 +116,7 @@ Try reducing the period of the generated waveform until the CPU cannot keep up w
from artiq.coredevice.runtime_exceptions import RTIOUnderflow from artiq.coredevice.runtime_exceptions import RTIOUnderflow
def print_underflow(): def print_underflow():
print("RTIO underflow occured") print("RTIO underflow occured")

View File

@ -115,7 +115,6 @@ class SpeedBenchmark(EnvExperiment):
(end_time-start_time)/self.nruns, (end_time-start_time)/self.nruns,
realtime=True) realtime=True)
def run(self): def run(self):
if self.mode == "Single experiment": if self.mode == "Single experiment":
self.run_without_scheduler(False) self.run_without_scheduler(False)