summaryrefslogtreecommitdiff
path: root/gr-uhd/apps/uhd_rx_cfile.py
diff options
context:
space:
mode:
authorTom Rondeau2011-05-17 17:21:33 +0100
committerTom Rondeau2011-05-17 17:21:33 +0100
commita442150fe2aefac17db65f298057f15be4cbded0 (patch)
treebe535509e29cceffddb342b5dbe31ad1560f2e55 /gr-uhd/apps/uhd_rx_cfile.py
parentf53fef3d2bc39b2020b8bce3d88b43569dd16605 (diff)
downloadgnuradio-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-xgr-uhd/apps/uhd_rx_cfile.py7
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]")