summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/uhd_display.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/apps/uhd_display.py')
-rwxr-xr-xgr-qtgui/apps/uhd_display.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-qtgui/apps/uhd_display.py b/gr-qtgui/apps/uhd_display.py
index 94e4f099c..30325a2c8 100755
--- a/gr-qtgui/apps/uhd_display.py
+++ b/gr-qtgui/apps/uhd_display.py
@@ -172,6 +172,10 @@ class my_top_block(gr.top_block):
self.qapp = QtGui.QApplication(sys.argv)
self.u = uhd.usrp_source(device_addr=options.address, stream_args=uhd.stream_args('fc32'))
+
+ if(options.antenna):
+ self.u.set_antenna(options.antenna, 0)
+
self.set_bandwidth(options.samp_rate)
if options.gain is None:
@@ -186,9 +190,6 @@ class my_top_block(gr.top_block):
options.freq = float(r.start()+r.stop())/2
self.set_frequency(options.freq)
- if(options.antenna):
- self.u.set_antenna(options.antenna, 0)
-
self._fftsize = options.fft_size
self.snk = qtgui.sink_c(options.fft_size,