diff options
author | Josh Blum | 2013-04-26 14:00:29 -0700 |
---|---|---|
committer | Josh Blum | 2013-06-25 14:13:57 -0700 |
commit | 0d62a959e9f5187e61b517cc85d94356de5e70a5 (patch) | |
tree | c65602bdccff5491f0bb938b9a1c512d0480eb63 /gr-uhd/grc | |
parent | db7ff72a3371fb638461828bab1b14974d73e05f (diff) | |
download | gnuradio-0d62a959e9f5187e61b517cc85d94356de5e70a5.tar.gz gnuradio-0d62a959e9f5187e61b517cc85d94356de5e70a5.tar.bz2 gnuradio-0d62a959e9f5187e61b517cc85d94356de5e70a5.zip |
uhd: added uhd blocks param for streamer channels
Diffstat (limited to 'gr-uhd/grc')
-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> |