diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2013-11-26 14:18:59 -0500 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2013-11-27 17:28:45 -0500 |
commit | 04cfc9f425bf65fb8da21c95709c4846114f627a (patch) | |
tree | be8dcb44759bd21b81d92733435244378c58fb99 /gr-blocks/grc | |
parent | f863f08c747d10feb2cee0ab4088da851d2e51b7 (diff) |
blocks: throttle block now looks for rx_rate tag and updates the throttle rate accordingly. A new block parameter can tell the block to ignore these tags; set to True by default.
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_throttle.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gr-blocks/grc/blocks_throttle.xml b/gr-blocks/grc/blocks_throttle.xml index 8293cbde9c..06f96b15cc 100644 --- a/gr-blocks/grc/blocks_throttle.xml +++ b/gr-blocks/grc/blocks_throttle.xml @@ -9,7 +9,7 @@ <key>blocks_throttle</key> <throttle>1</throttle> <import>from gnuradio import blocks</import> - <make>blocks.throttle($type.size*$vlen, $samples_per_second)</make> + <make>blocks.throttle($type.size*$vlen, $samples_per_second,$ignoretag)</make> <callback>set_sample_rate($samples_per_second)</callback> <param> <name>Type</name> @@ -53,6 +53,12 @@ <value>1</value> <type>int</type> </param> + <param> + <name>Ignore rx_rate tag</name> + <key>ignoretag</key> + <value>True</value> + <type>bool</type> + </param> <check>$vlen > 0</check> <sink> <name>in</name> |