diff options
author | jcorgan | 2007-08-17 18:38:47 +0000 |
---|---|---|
committer | jcorgan | 2007-08-17 18:38:47 +0000 |
commit | 7dca4d18c5ebaf1bca2a0413f5dbb2941b396828 (patch) | |
tree | 9f62d252a2866f868b3f35da4bcaaddc429e3650 | |
parent | b6597c5a4efff24beb5b0ee58e6f8ec3c7f55f56 (diff) | |
download | gnuradio-7dca4d18c5ebaf1bca2a0413f5dbb2941b396828.tar.gz gnuradio-7dca4d18c5ebaf1bca2a0413f5dbb2941b396828.tar.bz2 gnuradio-7dca4d18c5ebaf1bca2a0413f5dbb2941b396828.zip |
Added selection of USRP hardware
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6148 221aa14e-8319-0410-a670-987f0aec2ac5
-rwxr-xr-x | gnuradio-examples/python/usrp/usrp_fft.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnuradio-examples/python/usrp/usrp_fft.py b/gnuradio-examples/python/usrp/usrp_fft.py index 88bafc2f8..d30196449 100755 --- a/gnuradio-examples/python/usrp/usrp_fft.py +++ b/gnuradio-examples/python/usrp/usrp_fft.py @@ -52,6 +52,9 @@ class app_flow_graph(stdgui.gui_flow_graph): self.panel = panel parser = OptionParser(option_class=eng_option) + parser.add_option("-w", "--which", type=int, default=0, + help="select which USRP (0, 1, ...) default is %default", + metavar="NUM") parser.add_option("-R", "--rx-subdev-spec", type="subdev", default=None, help="select USRP Rx side A or B (default=first one with a daughterboard)") parser.add_option("-d", "--decim", type="int", default=16, @@ -75,7 +78,7 @@ class app_flow_graph(stdgui.gui_flow_graph): # build the graph - self.u = usrp.source_c(decim_rate=options.decim) + self.u = usrp.source_c(which=options.which, decim_rate=options.decim) if options.rx_subdev_spec is None: options.rx_subdev_spec = pick_subdevice(self.u) self.u.set_mux(usrp.determine_rx_mux_value(self.u, options.rx_subdev_spec)) |