diff options
author | matt | 2007-09-08 21:16:25 +0000 |
---|---|---|
committer | matt | 2007-09-08 21:16:25 +0000 |
commit | 1de3b0ded031368de377d44305f6aa506e0d6ec5 (patch) | |
tree | 543573dbcb50673c2aa909e3e933f5ad23778945 /gr-utils/src/python/usrp_fft.py | |
parent | 8a848c1b2c49893f79a1d9ef7e8b35a25738c79d (diff) | |
download | gnuradio-1de3b0ded031368de377d44305f6aa506e0d6ec5.tar.gz gnuradio-1de3b0ded031368de377d44305f6aa506e0d6ec5.tar.bz2 gnuradio-1de3b0ded031368de377d44305f6aa506e0d6ec5.zip |
added option to choose the antenna on RFX and WBX boards
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6369 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-utils/src/python/usrp_fft.py')
-rwxr-xr-x | gr-utils/src/python/usrp_fft.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gr-utils/src/python/usrp_fft.py b/gr-utils/src/python/usrp_fft.py index 353c89218..a8466092d 100755 --- a/gr-utils/src/python/usrp_fft.py +++ b/gr-utils/src/python/usrp_fft.py @@ -57,6 +57,8 @@ class app_flow_graph(stdgui.gui_flow_graph): metavar="NUM") parser.add_option("-R", "--rx-subdev-spec", type="subdev", default=None, help="select USRP Rx side A or B (default=first one with a daughterboard)") + parser.add_option("-A", "--antenna", default=None, + help="select Rx Antenna (only on RFX-series boards)") parser.add_option("-d", "--decim", type="int", default=16, help="set fgpa decimation rate to DECIM [default=%default]") parser.add_option("-f", "--freq", type="eng_float", default=None, @@ -122,6 +124,10 @@ class app_flow_graph(stdgui.gui_flow_graph): self.set_gain(options.gain) + if options.antenna is not None: + print "Selecting antenna %s" % (options.antenna,) + self.subdev.select_rx_antenna(options.antenna) + if self.show_debug_info: self.myform['decim'].set_value(self.u.decim_rate()) self.myform['fs@usb'].set_value(self.u.adc_freq() / self.u.decim_rate()) |