From 1c36ae06720cf9bba5feb4985204d202b9bb01d3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 26 Dec 2015 21:24:53 +0800 Subject: [PATCH] coredevice/analyzer: support TTL inputs --- artiq/coredevice/analyzer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/coredevice/analyzer.py b/artiq/coredevice/analyzer.py index c2d31fc41..daae70fe9 100644 --- a/artiq/coredevice/analyzer.py +++ b/artiq/coredevice/analyzer.py @@ -148,12 +148,14 @@ class TTLHandler: self.last_value = str(message.data) if self.oe: self.channel_value.set_value(self.last_value) - elif messages.address == 1: + elif message.address == 1: self.oe = bool(message.data) if self.oe: self.channel_value.set_value(self.last_value) else: self.channel_value.set_value("X") + elif isinstance(message, InputMessage): + self.channel_value.set_value(str(message.data)) class DDSHandler: