diff options
author | Tom Rondeau | 2011-12-14 22:24:44 -0500 |
---|---|---|
committer | Tom Rondeau | 2011-12-14 22:24:44 -0500 |
commit | 25c494b347a9e0c411c8cff0101f6c7c656464f0 (patch) | |
tree | 60b7598b4c5d56366eb8230ca12b1610bab3cc8c /gr-qtgui | |
parent | 1f29a384ecd6512f5cb0891dbd651aca8ced86ed (diff) | |
parent | f395bd639c64ea7b61d1e5091f5af0b419a5b3a2 (diff) | |
download | gnuradio-25c494b347a9e0c411c8cff0101f6c7c656464f0.tar.gz gnuradio-25c494b347a9e0c411c8cff0101f6c7c656464f0.tar.bz2 gnuradio-25c494b347a9e0c411c8cff0101f6c7c656464f0.zip |
Merge branch 'master' into next
Diffstat (limited to 'gr-qtgui')
-rwxr-xr-x | gr-qtgui/apps/uhd_display.py | 7 |
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, |