Skip to content

Commit

Permalink
Make status variable read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
bengineerd committed Aug 27, 2024
1 parent d19e4b2 commit f496299
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/pyrogue/_DataReceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit f496299

Please sign in to comment.