summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/max_power.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/examples/max_power.py')
-rwxr-xr-xgr-uhd/examples/max_power.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gr-uhd/examples/max_power.py b/gr-uhd/examples/max_power.py
index 53e1b413c..a849432ee 100755
--- a/gr-uhd/examples/max_power.py
+++ b/gr-uhd/examples/max_power.py
@@ -59,9 +59,8 @@ class build_block(gr.top_block):
if tx_enable:
print "\nTRANSMIT CHAIN"
- self.u_tx = uhd.usrp_sink(device_addr=args,
- io_type=uhd.io_type.COMPLEX_FLOAT32,
- num_channels=tx_nchan)
+ stream_args = uhd.stream_args('fc32', channels=range(tx_nchan))
+ self.u_tx = uhd.usrp_sink(device_addr=args, stream_args=stream_args)
self.u_tx.set_samp_rate(MAX_RATE)
self.tx_src0 = gr.sig_source_c(self.u_tx.get_samp_rate(),