From 4e03f7ab0aa9b17bf69ff1a25b05ebe869e0e2c0 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 4 Nov 2016 14:36:43 +0000 Subject: [PATCH] gui: Don't show more than the 64 working channels in moninj Previously, you could irreversibly set the override since the gateware part would accept commands for the higher channels, but of coure not report back the results. See GitHub #601. Signed-off-by: David Nadlinger --- artiq/dashboard/moninj.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index b821865b0..e49069ebd 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -207,6 +207,10 @@ class _DeviceManager: widget = None if v["module"] == "artiq.coredevice.ttl": channel = v["arguments"]["channel"] + if channel > 63: + # The moninj protocol is limited to 64 channels; ignore + # any beyond that for now to avoid confusion. + return force_out = v["class"] == "TTLOut" widget = _TTLWidget( channel, self.send_to_device, force_out, k)