# of this distribution and at: # https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. # No part of the rogue_example software, including this file, may be # copied, modified, propagated, or distributed except according to the terms # contained in the LICENSE.txt file. #----------------------------------------------------------------------------- import rogue.utilities import MyModule import pyrogue import time # Data generator prbsTx = rogue.utilities.Prbs() # Our receiver rx = MyModule.TestSink() # Connect the stream pyrogue.streamConnect(prbsTx, rx) # Generate Data prbsTx.enable(1000) try: while (True): print(" Rx: Count {}, Bytes {}, Last {}".format( rx.getCount(), rx.getBytes(), rx.getLast())) time.sleep(1) except KeyboardInterrupt: pass