diff options
author | Tom Rondeau <trondeau@vt.edu> | 2011-10-03 18:21:07 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2011-10-03 18:21:07 -0400 |
commit | 3045dae57b25613940d683cf76218db2a01a284b (patch) | |
tree | f6a383779e6af54297ab7509d70cf2df126f1f40 /gr-uhd/apps | |
parent | 6dd32838b1365bedadabeeca2d3c87bc584608f8 (diff) |
uhd: fixing hf_explorer to take the UHD address as an option.
Diffstat (limited to 'gr-uhd/apps')
-rwxr-xr-x | gr-uhd/apps/hf_explorer/hfx.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-uhd/apps/hf_explorer/hfx.py b/gr-uhd/apps/hf_explorer/hfx.py index dab1ce8628..687adf82b4 100755 --- a/gr-uhd/apps/hf_explorer/hfx.py +++ b/gr-uhd/apps/hf_explorer/hfx.py @@ -177,6 +177,8 @@ class MyFrame(wx.Frame): # end wxGlade parser = OptionParser (option_class=eng_option) + parser.add_option("", "--address", type="string", default="addr=192.168.10.2", + help="Address of UHD device, [default=%default]") parser.add_option ("-c", "--ddc-freq", type="eng_float", default=3.9e6, help="set Rx DDC frequency to FREQ", metavar="FREQ") parser.add_option ("-s", "--samp-rate", type="eng_float", default=256e3, @@ -240,7 +242,6 @@ class MyFrame(wx.Frame): else: self.PLAY_FROM_USRP = False if self.PLAY_FROM_USRP: - options.address = "addr=192.168.11.2" self.src = uhd.usrp_source(device_addr=options.address, io_type=uhd.io_type.COMPLEX_FLOAT32, num_channels=1) |