# Gnuradio schedular

**URL:** <https://www.ruby-forum.com/t/gnuradio-schedular/230375>\
**Category:** GNU Radio\
**Created:** [June 14, 2014, 5:37am UTC](https://www.ruby-forum.com/t/gnuradio-schedular/230375 "2014-06-14T05:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 14, 2014, 5:37am UTC](https://www.ruby-forum.com/t/gnuradio-schedular/230375/1 "2014-06-14T05:37:00Z")

</div>

Dear sir  
I experienced that after every 8191 samples variables of blocks becomes  
0.  
What is this 8191 limit?. I showed in gr\_scheduler\_overwive.pdf, N=2048.  
Is  
2048 number of samples? I noticed that 2048\*4=8129. Please explain what  
2048  
and 8129

Thanks  
Neil Herath

---

<div class="post-metadata">

**Author:** ![MHMND\_Herath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@MHMND\_Herath](https://www.ruby-forum.com/u/MHMND_Herath)\
**Post date:** [June 15, 2014, 1:23am UTC](https://www.ruby-forum.com/t/gnuradio-schedular/230375/2 "2014-06-15T01:23:35Z")

</div>

On Fri, Jun 13, 2014 at 11:46 PM, MHMND Herath [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Dear sir  
> I experienced that after every 8191 samples variables of blocks becomes 0.  
> What is this 8191 limit?. I showed in gr\_scheduler\_overwive.pdf, N=2048. Is  
> 2048 number of samples? I noticed that 2048\*4=8129. Please explain what 2048  
> and 8129
> 
> Thanks  
> Neil Herath

Hi Neil,

It’s not clear (to me) what you’re talking about here. To answer any  
question it would help if you added a link to external documents,  
mentioned a block (or blocks) that you’re having problems with, and  
describe the flowgraph/application that it occurs in.

Nathan

---

<div class="post-metadata">

**Author:** ![MHMND\_Herath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@MHMND\_Herath](https://www.ruby-forum.com/u/MHMND_Herath)\
**Post date:** [June 16, 2014, 11:37am UTC](https://www.ruby-forum.com/t/gnuradio-schedular/230375/3 "2014-06-16T11:37:38Z")

</div>

That’s how C++ classes work. If you declare a variable inside a method  
that  
variable gets declared every time the method is called. If you want the  
variable to keep state between method calls you need to declare it as a  
member of the class inside the class declaration.

For more information see any tutorial on C++ classes and look for  
variable  
scope.

Nathan
