diff options
author | Tom Rondeau | 2011-05-17 17:21:33 +0100 |
---|---|---|
committer | Tom Rondeau | 2011-05-17 17:21:33 +0100 |
commit | a442150fe2aefac17db65f298057f15be4cbded0 (patch) | |
tree | be535509e29cceffddb342b5dbe31ad1560f2e55 /gr-uhd/apps/uhd_rx_cfile.py | |
parent | f53fef3d2bc39b2020b8bce3d88b43569dd16605 (diff) | |
download | gnuradio-a442150fe2aefac17db65f298057f15be4cbded0.tar.gz gnuradio-a442150fe2aefac17db65f298057f15be4cbded0.tar.bz2 gnuradio-a442150fe2aefac17db65f298057f15be4cbded0.zip |
gr-uhd: fixed uhd apps; don't try to set the clock; default antenna unless specified; proper name for tune result.
Diffstat (limited to 'gr-uhd/apps/uhd_rx_cfile.py')
-rwxr-xr-x | gr-uhd/apps/uhd_rx_cfile.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-uhd/apps/uhd_rx_cfile.py b/gr-uhd/apps/uhd_rx_cfile.py index 897029f17..f49052d9c 100755 --- a/gr-uhd/apps/uhd_rx_cfile.py +++ b/gr-uhd/apps/uhd_rx_cfile.py @@ -62,7 +62,8 @@ class rx_cfile_block(gr.top_block): self._u.set_gain(options.gain) # Set the antenna - self._u.set_antenna(options.antenna, 0) + if(options.antenna): + self._u.set_antenna(options.antenna, 0) # Set frequency (tune request takes lo_offset) if(options.lo_offset is not None): @@ -90,7 +91,7 @@ class rx_cfile_block(gr.top_block): if options.verbose: print "Address:", options.address print "Rx gain:", options.gain - print "Rx baseband frequency:", n2s(tr.actual_inter_freq) + print "Rx baseband frequency:", n2s(tr.actual_rf_freq) print "Rx DDC frequency:", n2s(tr.actual_dsp_freq) print "Rx Sample Rate:", n2s(input_rate) if options.nsamples is None: @@ -108,7 +109,7 @@ def get_options(): parser = OptionParser(option_class=eng_option, usage=usage) parser.add_option("-a", "--address", type="string", default="addr=192.168.10.2", help="Address of UHD device, [default=%default]") - parser.add_option("-A", "--antenna", type="string", default="RX2", + parser.add_option("-A", "--antenna", type="string", default=None, help="select Rx Antenna where appropriate") parser.add_option("", "--samp-rate", type="eng_float", default=1e6, help="set sample rate (bandwidth) [default=%default]") |