summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/hier/usrp/usrp_fft.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-examples/python/hier/usrp/usrp_fft.py')
-rwxr-xr-xgnuradio-examples/python/hier/usrp/usrp_fft.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gnuradio-examples/python/hier/usrp/usrp_fft.py b/gnuradio-examples/python/hier/usrp/usrp_fft.py
index 5cd5c14822..b312130044 100755
--- a/gnuradio-examples/python/hier/usrp/usrp_fft.py
+++ b/gnuradio-examples/python/hier/usrp/usrp_fft.py
@@ -74,7 +74,6 @@ class app_top_block(stdgui2.std_top_block):
self.show_debug_info = True
self.u = usrp.source_c(decim_rate=options.decim)
- self.define_component("usrp", self.u)
if options.rx_subdev_spec is None:
options.rx_subdev_spec = pick_subdevice(self.u)
self.u.set_mux(usrp.determine_rx_mux_value(self.u, options.rx_subdev_spec))
@@ -99,11 +98,8 @@ class app_top_block(stdgui2.std_top_block):
self.scope = scopesink2.scope_sink_c(panel, sample_rate=input_rate)
else:
self.scope = fftsink2.fft_sink_c (panel, fft_size=1024, sample_rate=input_rate)
- self.define_component("scope", self.scope)
- # Ultimately this will be
- # self.connect("usrp scope")
- self.connect("usrp", 0, "scope", 0)
+ self.connect(self.u, self.scope)
self._build_gui(vbox)