summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/multi-antenna
diff options
context:
space:
mode:
authoreb2009-04-18 02:24:06 +0000
committereb2009-04-18 02:24:06 +0000
commite41989bb374e67223bad12637ec5105acdd101b0 (patch)
tree8193583a9cf8a2669cc7211884d98bc9896c25a3 /gnuradio-examples/python/multi-antenna
parentd624f458ece26f0ed9de125047269f05d5c80a25 (diff)
downloadgnuradio-e41989bb374e67223bad12637ec5105acdd101b0.tar.gz
gnuradio-e41989bb374e67223bad12637ec5105acdd101b0.tar.bz2
gnuradio-e41989bb374e67223bad12637ec5105acdd101b0.zip
Updated to work with old or new handling of Basic Rx daugherboard subdevs.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10877 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/multi-antenna')
-rwxr-xr-xgnuradio-examples/python/multi-antenna/multi_fft.py2
-rwxr-xr-xgnuradio-examples/python/multi-antenna/multi_file.py2
-rwxr-xr-xgnuradio-examples/python/multi-antenna/multi_scope.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-examples/python/multi-antenna/multi_fft.py b/gnuradio-examples/python/multi-antenna/multi_fft.py
index 54d8286d4..544445860 100755
--- a/gnuradio-examples/python/multi-antenna/multi_fft.py
+++ b/gnuradio-examples/python/multi-antenna/multi_fft.py
@@ -64,7 +64,7 @@ class my_graph(stdgui2.std_top_block):
self.subdev = self.u.db(0) + self.u.db(1)
- if (len (self.subdev) != 4 or
+ if (len (self.subdev) < 4 or
self.u.db(0, 0).dbid() != usrp_dbid.BASIC_RX or
self.u.db(0, 0).dbid() != usrp_dbid.BASIC_RX):
sys.stderr.write('This code requires a Basic Rx board on Sides A & B\n')
diff --git a/gnuradio-examples/python/multi-antenna/multi_file.py b/gnuradio-examples/python/multi-antenna/multi_file.py
index 6f09546ea..87d9085e3 100755
--- a/gnuradio-examples/python/multi-antenna/multi_file.py
+++ b/gnuradio-examples/python/multi-antenna/multi_file.py
@@ -70,7 +70,7 @@ class my_graph(gr.top_block):
self.subdev = self.u.db(0) + self.u.db(1)
- if (len(self.subdev) != 4 or
+ if (len(self.subdev) < 4 or
self.u.db(0, 0).dbid() != usrp_dbid.BASIC_RX or
self.u.db(1, 0).dbid() != usrp_dbid.BASIC_RX):
sys.stderr.write('This code requires a Basic Rx board on Sides A & B\n')
diff --git a/gnuradio-examples/python/multi-antenna/multi_scope.py b/gnuradio-examples/python/multi-antenna/multi_scope.py
index 5d6b1e920..d1e28ad18 100755
--- a/gnuradio-examples/python/multi-antenna/multi_scope.py
+++ b/gnuradio-examples/python/multi-antenna/multi_scope.py
@@ -64,7 +64,7 @@ class my_top_block(stdgui2.std_top_block):
self.subdev = self.u.db(0) + self.u.db(1)
- if (len(self.subdev) != 4 or
+ if (len(self.subdev) < 4 or
self.u.db(0, 0).dbid() != usrp_dbid.BASIC_RX or
self.u.db(0, 0).dbid() != usrp_dbid.BASIC_RX):
sys.stderr.write('This code requires a Basic Rx board on Sides A & B\n')