summaryrefslogtreecommitdiff
path: root/gr-uhd/apps/uhd_rx_cfile.py
diff options
context:
space:
mode:
authorTom Rondeau2011-11-12 18:30:13 -0500
committerTom Rondeau2011-11-12 18:30:13 -0500
commit0e7c799e4ef7a392a8ffe47170666908bfcb183f (patch)
treedeb32d3810b4cb636ecfa24ff613a1aad1fd409c /gr-uhd/apps/uhd_rx_cfile.py
parentc9c20b9051b997ab53a27869094648f15e0dccae (diff)
parent9a25332b706b1ffadf8cdf9b405e89c37a1e2278 (diff)
downloadgnuradio-0e7c799e4ef7a392a8ffe47170666908bfcb183f.tar.gz
gnuradio-0e7c799e4ef7a392a8ffe47170666908bfcb183f.tar.bz2
gnuradio-0e7c799e4ef7a392a8ffe47170666908bfcb183f.zip
Merge branch 'master' of gnuradio.org:gnuradio
Diffstat (limited to 'gr-uhd/apps/uhd_rx_cfile.py')
-rwxr-xr-xgr-uhd/apps/uhd_rx_cfile.py8
1 files changed, 2 insertions, 6 deletions
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