From 24da5f495ca629113ea17f14e764af26a2285e73 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 7 Nov 2011 18:33:05 -0800 Subject: uhd: change examples to use new stream api --- gr-uhd/apps/uhd_rx_cfile.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gr-uhd/apps/uhd_rx_cfile.py') diff --git a/gr-uhd/apps/uhd_rx_cfile.py b/gr-uhd/apps/uhd_rx_cfile.py index 625de36d3..61d5342c5 100755 --- a/gr-uhd/apps/uhd_rx_cfile.py +++ b/gr-uhd/apps/uhd_rx_cfile.py @@ -41,14 +41,10 @@ class rx_cfile_block(gr.top_block): # Create a UHD device source if options.output_shorts: - self._u = uhd.usrp_source(device_addr=options.args, - io_type=uhd.io_type.COMPLEX_INT16, - num_channels=1) + self._u = uhd.usrp_source(device_addr=options.args, stream_args=uhd.stream_args('sc16')) self._sink = gr.file_sink(gr.sizeof_short*2, filename) else: - self._u = uhd.usrp_source(device_addr=options.args, - io_type=uhd.io_type.COMPLEX_FLOAT32, - num_channels=1) + self._u = uhd.usrp_source(device_addr=options.args, stream_args=uhd.stream_args('fc32')) self._sink = gr.file_sink(gr.sizeof_gr_complex, filename) # Set receiver sample rate -- cgit