Noutput_items

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

best regards
erlend

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs