diff options
author | eb <eb@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-02-08 04:36:24 +0000 |
---|---|---|
committer | eb <eb@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-02-08 04:36:24 +0000 |
commit | 05005e3d3fad3c9baee9906714510b5d12e0fa6f (patch) | |
tree | 6f3785d80ac03b213dce984c9eb14be9b4c86571 /gnuradio-examples/python/multi_usrp | |
parent | 42ad2adb86981f4488edbe33169683f787b807c3 (diff) |
Removed gr.flow_graph, gr.hier_block and friends. From here on out
all work on the trunk must use gr.top_block and gr.hier_block2.
Merged eb/fg-no-more -r7602:7606 into trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7607 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/multi_usrp')
-rw-r--r-- | gnuradio-examples/python/multi_usrp/README | 6 | ||||
-rwxr-xr-x | gnuradio-examples/python/multi_usrp/multi_usrp_rx_cfile.py | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/gnuradio-examples/python/multi_usrp/README b/gnuradio-examples/python/multi_usrp/README index 982f02d988..0572391047 100644 --- a/gnuradio-examples/python/multi_usrp/README +++ b/gnuradio-examples/python/multi_usrp/README @@ -1,3 +1,9 @@ +# +# N.B., these files have not been converted to top_block/hier_block2 because +# those of doing the conversion don't have the setup to test this. +# As a result, these programs will no longer run until updated. +# + Quick start multi-usrp: Unpack, build and install usrp, gnuradio-core and gr-usrp diff --git a/gnuradio-examples/python/multi_usrp/multi_usrp_rx_cfile.py b/gnuradio-examples/python/multi_usrp/multi_usrp_rx_cfile.py index 6084aba3d7..ca0ec97c20 100755 --- a/gnuradio-examples/python/multi_usrp/multi_usrp_rx_cfile.py +++ b/gnuradio-examples/python/multi_usrp/multi_usrp_rx_cfile.py @@ -17,10 +17,10 @@ import sys import time from gnuradio import usrp_multi -class my_graph(gr.flow_graph): +class my_top_block(gr.top_block): def __init__(self): - gr.flow_graph.__init__(self) + gr.top_block.__init__(self) usage="%prog: [options] output_filename" parser = OptionParser(option_class=eng_option, usage=usage) @@ -118,12 +118,12 @@ class my_graph(gr.flow_graph): if __name__ == '__main__': - fg=my_graph() - fg.start() + tb=my_top_block() + tb.start() #time.sleep(0.5) - fg.sync_usrps() + tb.sync_usrps() raw_input ('Press Enter to quit: ') - fg.stop() + tb.stop() #try: # fg.start() # fg.sync_usrps() |