From f4962990c9ca80ca70c6787a9f424a7e13a65574 Mon Sep 17 00:00:00 2001 From: Benjamin Reese Date: Tue, 27 Aug 2024 12:40:18 -0700 Subject: [PATCH] Make status variable read-only --- python/pyrogue/_DataReceiver.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/pyrogue/_DataReceiver.py b/python/pyrogue/_DataReceiver.py index 07a3ea733..833f3f5fe 100644 --- a/python/pyrogue/_DataReceiver.py +++ b/python/pyrogue/_DataReceiver.py @@ -38,27 +38,31 @@ def __init__(self, self.add(pr.LocalVariable(name='FrameCount', value=0, + mode = 'RO', pollInterval=1, description='Frame Rx Counter')) self.add(pr.LocalVariable(name='ErrorCount', value=0, + mode = 'RO', pollInterval=1, description='Frame Error Counter')) self.add(pr.LocalVariable(name='ByteCount', value=0, + mode = 'RO', pollInterval=1, description='Byte Rx Counter')) self.add(pr.LocalVariable(name='Updated', value=False, + mode = 'RO', description='Data has been updated flag')) self.add(pr.LocalVariable(name='Data', typeStr=typeStr, disp='', - groups=['NoState','NoStream'], + groups=['NoState','NoStream', 'NoConfig'], value=value, hidden=hideData, description='Data Frame Container'))