From 20cddb6a2505ec943592abd515f7373e53331396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Mon, 24 Sep 2018 09:19:28 +0000 Subject: [PATCH] tester: handle no available ttl outputs --- artiq/examples/kasli_basic/repository/kasli_tester.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/examples/kasli_basic/repository/kasli_tester.py b/artiq/examples/kasli_basic/repository/kasli_tester.py index 2c00b1620..475925db2 100644 --- a/artiq/examples/kasli_basic/repository/kasli_tester.py +++ b/artiq/examples/kasli_basic/repository/kasli_tester.py @@ -156,7 +156,9 @@ class KasliTester(EnvExperiment): def test_ttl_ins(self): print("*** Testing TTL inputs.") - + if not self.ttl_outs: + print("No TTL output channel available to use as stimulus.") + return ttl_out_name, ttl_out_dev = next(iter(self.ttl_outs)) for ttl_in_name, ttl_in_dev in self.ttl_ins: print("Connect {} to {}. Press ENTER when done."