[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r6148 - gnuradio/trunk/gnuradio-examples/python/usrp
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r6148 - gnuradio/trunk/gnuradio-examples/python/usrp |
Date: |
Fri, 17 Aug 2007 12:38:47 -0600 (MDT) |
Author: jcorgan
Date: 2007-08-17 12:38:47 -0600 (Fri, 17 Aug 2007)
New Revision: 6148
Modified:
gnuradio/trunk/gnuradio-examples/python/usrp/usrp_fft.py
Log:
Added selection of USRP hardware
Modified: gnuradio/trunk/gnuradio-examples/python/usrp/usrp_fft.py
===================================================================
--- gnuradio/trunk/gnuradio-examples/python/usrp/usrp_fft.py 2007-08-17
15:18:20 UTC (rev 6147)
+++ gnuradio/trunk/gnuradio-examples/python/usrp/usrp_fft.py 2007-08-17
18:38:47 UTC (rev 6148)
@@ -52,6 +52,9 @@
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 @@
# 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r6148 - gnuradio/trunk/gnuradio-examples/python/usrp,
jcorgan <=