diff options
author | jcorgan | 2007-08-27 18:49:11 +0000 |
---|---|---|
committer | jcorgan | 2007-08-27 18:49:11 +0000 |
commit | c088a546ac7ae55748e5421201f3387f3e1286f9 (patch) | |
tree | b655773370d082062c2842181bff1638354c57c8 /gnuradio-examples/python/hier/networking | |
parent | 06945c04b4af8af035aeee2e28d5e5626888f5ee (diff) | |
download | gnuradio-c088a546ac7ae55748e5421201f3387f3e1286f9.tar.gz gnuradio-c088a546ac7ae55748e5421201f3387f3e1286f9.tar.bz2 gnuradio-c088a546ac7ae55748e5421201f3387f3e1286f9.zip |
Merged r6171:6186 from jcorgan/fg into trunk.
Changes hierarchical flow graph API to use gr.top_block instead
of gr.runtime.
See discuss-gnuradio mailing list for explanation of changes.
GRC has not been updated to use the changed API.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6187 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/hier/networking')
6 files changed, 6 insertions, 24 deletions
diff --git a/gnuradio-examples/python/hier/networking/audio_sink.py b/gnuradio-examples/python/hier/networking/audio_sink.py index 116a84815..e59d50834 100755 --- a/gnuradio-examples/python/hier/networking/audio_sink.py +++ b/gnuradio-examples/python/hier/networking/audio_sink.py @@ -50,12 +50,9 @@ if __name__ == '__main__': top_block = audio_sink(options.src_name, options.src_port, options.packet_size, options.sample_rate) - # Create an instance of a runtime, passing it the top block - runtime = gr.runtime(top_block) - try: # Run forever - runtime.run() + top_block.run() except KeyboardInterrupt: # Ctrl-C exits pass diff --git a/gnuradio-examples/python/hier/networking/audio_source.py b/gnuradio-examples/python/hier/networking/audio_source.py index 2c42e29d3..d7f4f6d93 100755 --- a/gnuradio-examples/python/hier/networking/audio_source.py +++ b/gnuradio-examples/python/hier/networking/audio_source.py @@ -52,12 +52,9 @@ if __name__ == '__main__': top_block = audio_source(options.src_name, options.dst_name, options.dst_port, options.packet_size, options.sample_rate) - # Create an instance of a runtime, passing it the top block - runtime = gr.runtime(top_block) - try: # Run forever - runtime.run() + top_block.run() except KeyboardInterrupt: # Ctrl-C exits pass diff --git a/gnuradio-examples/python/hier/networking/dial_tone_sink.py b/gnuradio-examples/python/hier/networking/dial_tone_sink.py index 5b979b35b..47d24b9bc 100755 --- a/gnuradio-examples/python/hier/networking/dial_tone_sink.py +++ b/gnuradio-examples/python/hier/networking/dial_tone_sink.py @@ -50,12 +50,9 @@ if __name__ == '__main__': top_block = dial_tone_sink(options.src_name, options.src_port, options.packet_size, options.sample_rate) - # Create an instance of a runtime, passing it the top block - runtime = gr.runtime(top_block) - try: # Run forever - runtime.run() + top_block.run() except KeyboardInterrupt: # Ctrl-C exits pass diff --git a/gnuradio-examples/python/hier/networking/dial_tone_source.py b/gnuradio-examples/python/hier/networking/dial_tone_source.py index f092097d9..835f9aafc 100755 --- a/gnuradio-examples/python/hier/networking/dial_tone_source.py +++ b/gnuradio-examples/python/hier/networking/dial_tone_source.py @@ -61,12 +61,9 @@ if __name__ == '__main__': top_block = dial_tone_source(options.src_name, options.dst_name, options.dst_port, options.packet_size, options.sample_rate) - # Create an instance of a runtime, passing it the top block - runtime = gr.runtime(top_block) - try: # Run forever - runtime.run() + top_block.run() except KeyboardInterrupt: # Ctrl-C exits pass diff --git a/gnuradio-examples/python/hier/networking/vector_sink.py b/gnuradio-examples/python/hier/networking/vector_sink.py index 05f3b0cbc..981cc598b 100755 --- a/gnuradio-examples/python/hier/networking/vector_sink.py +++ b/gnuradio-examples/python/hier/networking/vector_sink.py @@ -48,12 +48,9 @@ if __name__ == "__main__": # Create an instance of a hierarchical block top_block = vector_sink(options.src_name, options.src_port, options.packet_size) - # Create an instance of a runtime, passing it the top block - runtime = gr.runtime(top_block) - try: # Run forever - runtime.run() + top_block.run() except KeyboardInterrupt: # Ctrl-C exits pass diff --git a/gnuradio-examples/python/hier/networking/vector_source.py b/gnuradio-examples/python/hier/networking/vector_source.py index 8ef01d7a9..e7ec2a461 100755 --- a/gnuradio-examples/python/hier/networking/vector_source.py +++ b/gnuradio-examples/python/hier/networking/vector_source.py @@ -51,12 +51,9 @@ if __name__ == '__main__': top_block = vector_source(options.src_name, options.dst_name, options.dst_port, options.packet_size) - # Create an instance of a runtime, passing it the top block - runtime = gr.runtime(top_block) - try: # Run forever - runtime.run() + top_block.run() except KeyboardInterrupt: # Ctrl-C exits pass |