From 7dca4d18c5ebaf1bca2a0413f5dbb2941b396828 Mon Sep 17 00:00:00 2001 From: jcorgan Date: Fri, 17 Aug 2007 18:38:47 +0000 Subject: Added selection of USRP hardware git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6148 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-examples/python/usrp/usrp_fft.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) -- cgit