On Wed, Nov 08, 2006 at 07:43:25PM +0100, Erlend Barstad Strand wrote:
Im trying to get a deeper understanding on how GNU Radio works on the block
level an have come across problem:
How does the runtime system calculate the noutput_items that is given to the
blocks work function?
It’s based on the results of calling the forecast method of the block.
Since this variable actually depends on what goes on
in the work function. And what does the runtime system do when the blocks
work function returns a number different from noutput_items?
The value returned from the work method tells the runtime how many
output items the work function actually produced. It’s a good idea to
produce what you were asked to, but there are times when it’s OK to
return less. They are the exception, however, not the rule.
If you’ve still got questions after reading through
howto-write-a-block please ask again.