From 792e9780cd48177a13416e5926b77f30526ae3ec Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Wed, 19 Oct 2011 09:52:26 -0700 Subject: uhd: updating examples to use args and better default for all UHD examples; also fixed the wfm_rcv blocks to use new PLL constructor. --- gr-uhd/examples/usrp_wfm_rcv_nogui.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gr-uhd/examples/usrp_wfm_rcv_nogui.py') 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) -- cgit