diff options
author | Josh Blum | 2011-11-07 18:33:05 -0800 |
---|---|---|
committer | Josh Blum | 2011-11-07 18:56:29 -0800 |
commit | 24da5f495ca629113ea17f14e764af26a2285e73 (patch) | |
tree | df56fe437eaf43de82e5859e97df6dabf02bf8ff /gr-pager | |
parent | d04404e1dd647b2de0f711a6ccba92e9dc21b823 (diff) | |
download | gnuradio-24da5f495ca629113ea17f14e764af26a2285e73.tar.gz gnuradio-24da5f495ca629113ea17f14e764af26a2285e73.tar.bz2 gnuradio-24da5f495ca629113ea17f14e764af26a2285e73.zip |
uhd: change examples to use new stream api
Diffstat (limited to 'gr-pager')
-rwxr-xr-x | gr-pager/apps/usrp_flex.py | 4 | ||||
-rwxr-xr-x | gr-pager/apps/usrp_flex_all.py | 4 | ||||
-rwxr-xr-x | gr-pager/apps/usrp_flex_band.py | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/gr-pager/apps/usrp_flex.py b/gr-pager/apps/usrp_flex.py index 7c90d9296..7d0d66a95 100755 --- a/gr-pager/apps/usrp_flex.py +++ b/gr-pager/apps/usrp_flex.py @@ -35,9 +35,7 @@ class app_top_block(gr.top_block): if options.from_file is None: # Set up USRP source - self.u = uhd.usrp_source(device_addr=options.address, - io_type=uhd.io_type.COMPLEX_FLOAT32, - num_channels=1) + self.u = uhd.usrp_source(device_addr=options.address, stream_args=uhd.stream_args('fc32')) # Grab 250 KHz of spectrum # (A UHD facility to get sample rate range and granularity would be useful) diff --git a/gr-pager/apps/usrp_flex_all.py b/gr-pager/apps/usrp_flex_all.py index 71a0a398e..36bd90034 100755 --- a/gr-pager/apps/usrp_flex_all.py +++ b/gr-pager/apps/usrp_flex_all.py @@ -39,9 +39,7 @@ class app_top_block(gr.top_block): else: # Set up USRP source - self.u = uhd.usrp_source(device_addr=options.address, - io_type=uhd.io_type.COMPLEX_FLOAT32, - num_channels=1) + self.u = uhd.usrp_source(device_addr=options.address, stream_args=uhd.stream_args('fc32')) # Tune daughterboard r = self.u.set_center_freq(options.freq+options.calibration, 0) diff --git a/gr-pager/apps/usrp_flex_band.py b/gr-pager/apps/usrp_flex_band.py index 8ea76c229..63fb93fa1 100755 --- a/gr-pager/apps/usrp_flex_band.py +++ b/gr-pager/apps/usrp_flex_band.py @@ -35,9 +35,7 @@ class app_top_block(gr.top_block): print "Reading samples from file", options.from_file else: # Set up USRP source - self.u = uhd.usrp_source(device_addr=options.address, - io_type=uhd.io_type.COMPLEX_FLOAT32, - num_channels=1) + self.u = uhd.usrp_source(device_addr=options.address, stream_args=uhd.stream_args('fc32')) # Grab 1 MHz of spectrum # (A UHD facility to get sample rate range and granularity would be useful) |