discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] noutput_items


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] noutput_items
Date: Wed, 8 Nov 2006 10:56:10 -0800
User-agent: Mutt/1.5.9i

On Wed, Nov 08, 2006 at 07:43:25PM +0100, Erlend Barstad Strand wrote:
> Hi
> 
> 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.

See http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html

> 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.

Eric




reply via email to

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