From c7d48a1765e17366405a2d9ba68829b9f1555c2d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 1 Mar 2016 19:03:10 +0800 Subject: [PATCH] coredevice/TTLOut: add dummy output function --- artiq/coredevice/ttl.py | 4 ++++ artiq/test/coredevice/test_rtio.py | 1 + 2 files changed, 5 insertions(+) diff --git a/artiq/coredevice/ttl.py b/artiq/coredevice/ttl.py index 91c8c5531..28248a820 100644 --- a/artiq/coredevice/ttl.py +++ b/artiq/coredevice/ttl.py @@ -37,6 +37,10 @@ class TTLOut: # in RTIO cycles self.o_previous_timestamp = int(0, width=64) + @kernel + def output(self): + pass + @kernel def set_o(self, o): ttl_set_o(now_mu(), self.channel, o) diff --git a/artiq/test/coredevice/test_rtio.py b/artiq/test/coredevice/test_rtio.py index ff50bf51c..50958392f 100644 --- a/artiq/test/coredevice/test_rtio.py +++ b/artiq/test/coredevice/test_rtio.py @@ -8,6 +8,7 @@ from math import sqrt from artiq.experiment import * from artiq.test.hardware_testbench import ExperimentCase + artiq_low_latency = os.getenv("ARTIQ_LOW_LATENCY")