summaryrefslogtreecommitdiff
path: root/gr-digital/examples/narrowband
diff options
context:
space:
mode:
authorJosh Blum2011-11-07 18:33:05 -0800
committerJosh Blum2011-11-07 18:56:29 -0800
commit24da5f495ca629113ea17f14e764af26a2285e73 (patch)
treedf56fe437eaf43de82e5859e97df6dabf02bf8ff /gr-digital/examples/narrowband
parentd04404e1dd647b2de0f711a6ccba92e9dc21b823 (diff)
downloadgnuradio-24da5f495ca629113ea17f14e764af26a2285e73.tar.gz
gnuradio-24da5f495ca629113ea17f14e764af26a2285e73.tar.bz2
gnuradio-24da5f495ca629113ea17f14e764af26a2285e73.zip
uhd: change examples to use new stream api
Diffstat (limited to 'gr-digital/examples/narrowband')
-rw-r--r--gr-digital/examples/narrowband/uhd_interface.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/gr-digital/examples/narrowband/uhd_interface.py b/gr-digital/examples/narrowband/uhd_interface.py
index 21930ad01..27e370911 100644
--- a/gr-digital/examples/narrowband/uhd_interface.py
+++ b/gr-digital/examples/narrowband/uhd_interface.py
@@ -46,13 +46,9 @@ class uhd_interface:
gain=None, spec=None, antenna=None):
if(istx):
- self.u = uhd.usrp_sink(device_addr=args,
- io_type=uhd.io_type.COMPLEX_FLOAT32,
- num_channels=1)
+ self.u = uhd.usrp_sink(device_addr=args, stream_args=uhd.stream_args('fc32'))
else:
- self.u = uhd.usrp_source(device_addr=args,
- io_type=uhd.io_type.COMPLEX_FLOAT32,
- num_channels=1)
+ self.u = uhd.usrp_source(device_addr=args, stream_args=uhd.stream_args('fc32'))
self._args = args
self._ant = antenna