Skip to content

Commit

Permalink
Merge pull request #732 from slaclab/ESROGUE-465
Browse files Browse the repository at this point in the history
Fix data receiver signature
  • Loading branch information
slacrherbst authored Sep 11, 2020
2 parents 77d8713 + 4ca071a commit a87e31a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pyrogue/_DataReceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class DataReceiver(pr.Device,ris.Slave):

def __init__(self, **kwargs):
pr.Device.__init__(self, **kwargs)
ris.Slave.__init__(self)

self.add(pr.LocalVariable(name='RxEnable',
value=True,
Expand All @@ -45,7 +46,7 @@ def __init__(self, **kwargs):

self.add(pr.LocalVariable(name='Data',
hidden=True,
value=numpy.empty(shape=0, dtype=numpy.Int8, order='C'),
value=numpy.empty(shape=0, dtype=numpy.int8, order='C'),
description='Data Frame Container'))

def countReset(self):
Expand Down
5 changes: 5 additions & 0 deletions tests/run_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ def __init__(self):
self.add(self._fw)
self._prbsTx >> self._fw.getChannel(0)

# Add Data Receiver
drx = pyrogue.DataReceiver()
self._prbsTx >> drx
self.add(drx)

# Add Run Control
self.add(pyrogue.RunControl())

Expand Down

0 comments on commit a87e31a

Please sign in to comment.