summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/hier/usrp
diff options
context:
space:
mode:
authorjcorgan2007-08-27 18:49:11 +0000
committerjcorgan2007-08-27 18:49:11 +0000
commitc088a546ac7ae55748e5421201f3387f3e1286f9 (patch)
treeb655773370d082062c2842181bff1638354c57c8 /gnuradio-examples/python/hier/usrp
parent06945c04b4af8af035aeee2e28d5e5626888f5ee (diff)
downloadgnuradio-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/usrp')
-rwxr-xr-xgnuradio-examples/python/hier/usrp/usrp_siggen.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnuradio-examples/python/hier/usrp/usrp_siggen.py b/gnuradio-examples/python/hier/usrp/usrp_siggen.py
index f1eb2a6bc..91a7a7aff 100755
--- a/gnuradio-examples/python/hier/usrp/usrp_siggen.py
+++ b/gnuradio-examples/python/hier/usrp/usrp_siggen.py
@@ -119,11 +119,9 @@ def main ():
top_block = my_graph(options.type, options.amplitude, options.waveform_freq, options.offset,
options.tx_subdev_spec, options.interp, options.rf_freq)
- runtime = gr.runtime(top_block)
-
try:
# Run forever
- runtime.run()
+ top_block.run()
except KeyboardInterrupt:
# Ctrl-C exits
pass