summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/usrp_wfm_rcv_nogui.py
diff options
context:
space:
mode:
authorJosh Blum2011-10-19 16:37:33 -0700
committerJosh Blum2011-10-19 16:37:33 -0700
commitbe300d920fe1b7a3eb738565cddd10624ec62a75 (patch)
tree45bb49c4a4acd7c93bb218c84b94de4c90f198c5 /gr-uhd/examples/usrp_wfm_rcv_nogui.py
parenta57f7484a1b1ba18b66334675ce6458b00d40626 (diff)
parente30b824e9165bff69f09121631c3d5a706cbbd39 (diff)
downloadgnuradio-be300d920fe1b7a3eb738565cddd10624ec62a75.tar.gz
gnuradio-be300d920fe1b7a3eb738565cddd10624ec62a75.tar.bz2
gnuradio-be300d920fe1b7a3eb738565cddd10624ec62a75.zip
Merge branch 'next' of http://gnuradio.org/git/gnuradio into next
Diffstat (limited to 'gr-uhd/examples/usrp_wfm_rcv_nogui.py')
-rwxr-xr-xgr-uhd/examples/usrp_wfm_rcv_nogui.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gr-uhd/examples/usrp_wfm_rcv_nogui.py b/gr-uhd/examples/usrp_wfm_rcv_nogui.py
index ffeda4493..7c2c6050d 100755
--- a/gr-uhd/examples/usrp_wfm_rcv_nogui.py
+++ b/gr-uhd/examples/usrp_wfm_rcv_nogui.py
@@ -32,9 +32,8 @@ class wfm_rx_block (gr.top_block):
gr.top_block.__init__(self)
parser=OptionParser(option_class=eng_option)
- parser.add_option("-a", "--address", type="string",
- default="addr=192.168.10.2",
- help="Address of UHD device, [default=%default]")
+ parser.add_option("-a", "--args", type="string", default="",
+ help="UHD device address args [default=%default]")
parser.add_option("-A", "--antenna", type="string", default=None,
help="select Rx Antenna where appropriate")
parser.add_option("-f", "--freq", type="eng_float", default=100.1e6,
@@ -62,7 +61,7 @@ class wfm_rx_block (gr.top_block):
self.fm_freq_max = options.freq_max
# build graph
- self.u = uhd.usrp_source(device_addr=options.address,
+ self.u = uhd.usrp_source(device_addr=options.args,
io_type=uhd.io_type.COMPLEX_FLOAT32,
num_channels=1)