Skip to content

Commit

Permalink
Merge pull request #1023 from slaclab/data-receiver-ro
Browse files Browse the repository at this point in the history
Make Rogue DataReceiver status Variables read-only
  • Loading branch information
ruck314 authored Aug 28, 2024
2 parents a3d3818 + 7dc70a1 commit 5bbf5e6
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 5bbf5e6

Please sign in to comment.