diff options
-rw-r--r-- | gr-uhd/grc/gen_uhd_usrp_blocks.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gr-uhd/grc/gen_uhd_usrp_blocks.py b/gr-uhd/grc/gen_uhd_usrp_blocks.py index e392f6a60..3b7602958 100644 --- a/gr-uhd/grc/gen_uhd_usrp_blocks.py +++ b/gr-uhd/grc/gen_uhd_usrp_blocks.py @@ -36,7 +36,11 @@ MAIN_TMPL = """\ \#if \$stream_args() args=\$stream_args, \#end if + \#if \$stream_chans() + channels=\$stream_chans, + \#else channels=range(\$nchan), + \#end if ), ) \#if \$clock_rate() @@ -146,6 +150,19 @@ self.\$(id).set_bandwidth(\$bw$(n), $n) </option> </param> <param> + <name>Stream channels</name> + <key>stream_chans</key> + <value>[]</value> + <type>int_vector</type> + <hide> + \#if \$stream_chans() + none + \#else + part + \#end if + </hide> + </param> + <param> <name>Device Addr</name> <key>dev_addr</key> <value></value> |