[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Problems with the examples
From: |
Johnathan Corgan |
Subject: |
Re: [Discuss-gnuradio] Problems with the examples |
Date: |
Mon, 11 Feb 2008 10:26:44 -0800 |
To clarify, there was one missing line. Here is the snippet again,
with comments:
if __name__ == '__main__': # Execute if script invoked
as program
tb = my_top_block() # Create an instance
of a custom top block
tb.start() # Start
the flowgraph running in background thread
raw_input("Press Enter to stop.") # Wait for user to hit enter
in foreground thread
tb.stop() # Tell
flowgraph to gracefully exit
tb.wait() # Wait for
it to do so
--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com/