# Using rx rate stream tag to control throttle

**URL:** <https://www.ruby-forum.com/t/using-rx-rate-stream-tag-to-control-throttle/237526>\
**Category:** GNU Radio\
**Created:** [November 17, 2013, 11:05pm UTC](https://www.ruby-forum.com/t/using-rx-rate-stream-tag-to-control-throttle/237526 "2013-11-17T23:05:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [November 17, 2013, 11:05pm UTC](https://www.ruby-forum.com/t/using-rx-rate-stream-tag-to-control-throttle/237526/1 "2013-11-17T23:05:03Z")

</div>

Hi,

Some minor changes relating to metadata files and stream tags. The first  
simply provides a command line option that causes uhd\_rx\_cfile to write  
metadata files. The second modifies the throttle so that it uses the  
rx\_rate stream tag to change the throttle rate (this behaviour is  
enabled only if a rate of \<= 0 is passed to the throttle ctor).

Regards

Steve

- 
  - 

The following changes since commit  
9fb34ce4b3d9c524f687d2e6c106c971541d8921:

Merge branch ‘maint’ (2013-11-11 14:36:53 -0500)

are available in the git repository at:

removed\_email\_address@domain.invalid:stiabhan/gnuradio.git metadata

for you to fetch changes up to 10ae10dc690604b4316ca044be39ca32030a1a10:

gr-blocks: modify throttle so it can be controlled using stream tag.  
(2013-11-13 22:12:20 +1000)

* * *

Steve G. (2):  
gr-uhd: add option to uhd\_rx\_cfile to write metadata file.  
gr-blocks: modify throttle so it can be controlled using stream  
tag.

gr-blocks/include/gnuradio/blocks/throttle.h | 2 ±  
gr-blocks/lib/throttle\_impl.cc | 26  
++++++++++++++++++++++±–  
gr-blocks/lib/throttle\_impl.h | 1 +  
gr-blocks/python/blocks/qa\_throttle.py | 41  
+++++++++++++++++++++++++++++++++++++++±  
gr-uhd/apps/uhd\_rx\_cfile | 35  
+++++++++++++++++++++++++++++±----  
5 files changed, 95 insertions(+), 10 deletions(-)  
mode change 100755 =\> 100644 gr-uhd/apps/uhd\_rx\_cfile

---

<div class="post-metadata">

**Author:** ![sjglazer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Post date:** [November 17, 2013, 11:17pm UTC](https://www.ruby-forum.com/t/using-rx-rate-stream-tag-to-control-throttle/237526/2 "2013-11-17T23:17:55Z")

</div>

On Sun, Nov 17, 2013 at 5:03 PM, Steve G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Steve  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):stiabhan/gnuradio.git metadata
> 
> gr-blocks/include/gnuradio/blocks/throttle.h | 2 ±  
> gr-blocks/lib/throttle\_impl.cc | 26  
> ++++++++++++++++++++++±–  
> gr-blocks/lib/throttle\_impl.h | 1 +  
> gr-blocks/python/blocks/qa\_throttle.py | 41  
> +++++++++++++++++++++++++++++++++++++++±  
> gr-uhd/apps/uhd\_rx\_cfile | 35  
> +++++++++++++++++++++++++++++±----  
> 5 files changed, 95 insertions(+), 10 deletions(-)  
> mode change 100755 =\> 100644 gr-uhd/apps/uhd\_rx\_cfile

Please use the Issue tracker on [gnuradio.org](http://gnuradio.org) to report this as a  
feature. Email is likely to get lost before we can get to it.

Tom
