# Time controlling block

**URL:** <https://www.ruby-forum.com/t/time-controlling-block/237815>\
**Category:** GNU Radio\
**Created:** [December 2, 2013, 10:08am UTC](https://www.ruby-forum.com/t/time-controlling-block/237815 "2013-12-02T10:08:42Z")\
**Posts on this page:** 4\
**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:** [December 2, 2013, 10:08am UTC](https://www.ruby-forum.com/t/time-controlling-block/237815/1 "2013-12-02T10:08:42Z")

</div>

Hi,  
Today i got a idea about implementing three different modulations on  
single message signal. But i want the modulations to happen after  
certain  
time has searched (can say exactly like counter). which is the block in  
GNU  
Radio that i can use has a counter.

Thanks and regards,  
Sandhya

---

<div class="post-metadata">

**Author:** ![sandhya\_g](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/47e85d/32.png) [@sandhya\_g](https://www.ruby-forum.com/u/sandhya_g)\
**Post date:** [December 2, 2013, 7:46pm UTC](https://www.ruby-forum.com/t/time-controlling-block/237815/2 "2013-12-02T19:46:38Z")

</div>

you could keep a class variable which is added to every time work() is  
called, adding to it each time the value of noutput\_items or  
input\_items.size().

Its also useful to know the scheduler, because it feeds work() an  
arbitrary  
number of samples each time.  
There is a presentation on gnuradio scheduler.

---

<div class="post-metadata">

**Author:** ![sandhya\_g](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/47e85d/32.png) [@sandhya\_g](https://www.ruby-forum.com/u/sandhya_g)\
**Post date:** [December 3, 2013, 8:16am UTC](https://www.ruby-forum.com/t/time-controlling-block/237815/3 "2013-12-03T08:16:44Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

This is redundant. The block base class has methods  
nitems\_read() and nitems\_written() that do exactly what you want.

However: I’m totally interested in this presentation on the current  
scheduler; URL?

Greetings,  
Marcus

On 02.12.2013 19:45, Wayne R. wrote:

> wrote:
> 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.15 (GNU/Linux)  
Comment: Using GnuPG with Thunderbird - [http://www.enigmail.net/](http://www.enigmail.net/)

iQEcBAEBAgAGBQJSnYTwAAoJEAFxB7BbsDrLjH8H/1b7Ocr4McViRZUThAb0Q0b5  
yFlbSJe+5fKbbwJXptLq8/UZSOIVVHeekd3937RKHpHOmxkXY2FTZr8TQmadM/w0  
L5wYSflm4VxA3F6OkAOAUpZDNX7KTL7uRDGRS0X7EqiVyjai3BCakwiYEDZTNrQB  
n/cLUgum0qt0eDCSIF4OiPYc4nDHiQJd+iswR3Le476/qJA5Is/08I84muSDCCnM  
pDtHvwaDuV87fYuZGmxHuBDyknNAJAnhWcatUh8B1SIquWBieezhMkNQAGOLKWRV  
7y+cCVyXWPMchkN73vUWcuKPIis4U2kMkXF9f3q8cV3I83RqWizg1aA/lEpBBqI=  
=B3bM  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![sandhya\_g](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/47e85d/32.png) [@sandhya\_g](https://www.ruby-forum.com/u/sandhya_g)\
**Post date:** [December 3, 2013, 11:51am UTC](https://www.ruby-forum.com/t/time-controlling-block/237815/4 "2013-12-03T11:51:15Z")

</div>

Marcus,

I think wayne is referring to the gnuradio scheduler presentation of Tom  
Rondeau in his blog. The link is

[http://gnuradio.squarespace.com/blog/2013/9/15/explaining-the-gnu-radio-scheduler.html](http://gnuradio.squarespace.com/blog/2013/9/15/explaining-the-gnu-radio-scheduler.html)
