discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] How to specify maximum size of input buffers on block


From: Gonzalo Arcos
Subject: [Discuss-gnuradio] How to specify maximum size of input buffers on blocks
Date: Wed, 24 Feb 2016 21:11:56 -0300

Suppose i have a file source, connected to 2 blocks, one, lets call it Block A, does always return instantly after general work is called, in other words, it will never consume an input item. The other one, say its block B, is the identity block, it consumes and output exactly what it receives as input. 

The output of the first block is a null sink (since i know it will not produce any output), and the output of the second block is a file sink.

What i am experiencing at running this flowgraph, is that block B will work for the very first seconds (or centiseconds), and will eventually block. This is because A has never consumed an input item, so i guess A's input buffer is full. Because of this, the file sink cannot push any more items further into the flowgraph, resulting in B not having any new input items to process.

So, my question is, how big is the input buffer of A? Is that customizable? Can i increase the size, so the flowgraph wont block at the first seconds, but at a minute, for example?
Can i specify a policy for a block that if it reaches X amount of samples in its input buffer to drop some of the input?

Ive seen that each block has minimum output buffer and maximum output buffer in grc. However, i do not see any option regarding its INPUT buffer.

Another thing i thought is that A's input buffer is the file source output buffer, therefore by adjusting the output buffer of the file source, i am adjusting A's (and B's) input buffer. However, the output buffer of the file source is 0, so i guess its "infinite".

reply via email to

[Prev in Thread] Current Thread [Next in Thread]