Skip to content

Commit

Permalink
test/analyzer: clear analyzer buffer after IO init
Browse files Browse the repository at this point in the history
sbourdeauducq committed Apr 14, 2016
1 parent a2e4f95 commit 91645ff
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions artiq/test/coredevice/test_analyzer.py
Original file line number Diff line number Diff line change
@@ -11,10 +11,13 @@ def build(self):
self.setattr_device("loop_out")

@kernel
def run(self):
def initialize_io(self):
self.loop_in.input()
self.loop_out.off()
delay_mu(8)

@kernel
def run(self):
self.core.break_realtime()
with parallel:
self.loop_in.gate_both_mu(1200)
with sequential:
@@ -27,10 +30,9 @@ class AnalyzerTest(ExperimentCase):
def test_ttl_pulse(self):
comm = self.device_mgr.get("comm")

# clear analyzer buffer
comm.get_analyzer_dump()

exp = self.create(CreateTTLPulse)
exp.initialize_io()
comm.get_analyzer_dump() # clear analyzer buffer
exp.run()

dump = decode_dump(comm.get_analyzer_dump())

0 comments on commit 91645ff

Please sign in to comment.