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/


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to