summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/usrp_wxapt_rcv.py
diff options
context:
space:
mode:
authorTom Rondeau2011-10-19 09:52:26 -0700
committerTom Rondeau2011-10-19 09:52:26 -0700
commit792e9780cd48177a13416e5926b77f30526ae3ec (patch)
tree3c3794ba13f9db48183f2d04b3f2d422a4d6a0ce /gr-uhd/examples/usrp_wxapt_rcv.py
parent52b42b9e958be6908ab5279bbe4ecea8b2464ee8 (diff)
downloadgnuradio-792e9780cd48177a13416e5926b77f30526ae3ec.tar.gz
gnuradio-792e9780cd48177a13416e5926b77f30526ae3ec.tar.bz2
gnuradio-792e9780cd48177a13416e5926b77f30526ae3ec.zip
uhd: updating examples to use args and better default for all UHD examples; also fixed the wfm_rcv blocks to use new PLL constructor.
Diffstat (limited to 'gr-uhd/examples/usrp_wxapt_rcv.py')
-rwxr-xr-xgr-uhd/examples/usrp_wxapt_rcv.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gr-uhd/examples/usrp_wxapt_rcv.py b/gr-uhd/examples/usrp_wxapt_rcv.py
index 5b44398d1..809756d96 100755
--- a/gr-uhd/examples/usrp_wxapt_rcv.py
+++ b/gr-uhd/examples/usrp_wxapt_rcv.py
@@ -34,9 +34,8 @@ class wxapt_rx_block (stdgui2.std_top_block):
stdgui2.std_top_block.__init__ (self,frame,panel,vbox,argv)
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=137.5e6,
@@ -68,7 +67,7 @@ class wxapt_rx_block (stdgui2.std_top_block):
self.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)