Hi!
I have many source blocks with different kinds of signal generator and I
want to create a configurable unique block.
Can I make a source block with multiple outputs each one with a
different
rate?
Thank you,
John
Hi!
I have many source blocks with different kinds of signal generator and I
want to create a configurable unique block.
Can I make a source block with multiple outputs each one with a
different
rate?
Thank you,
John
On Wed, Aug 25, 2010 at 10:08:22AM -0300, John Li wrote:
Hi!
I have many source blocks with different kinds of signal generator and I
want to create a configurable unique block.Can I make a source block with multiple outputs each one with a different
rate?Thank you,
John
Yes you can in 3.3.*
Your block will need to derive from gr_block, and in general_work you
must call produce for each output streams, and general_work must
return WORK_CALLED_PRODUCE as it’s value.
From gr_block.h:
//! Magic return values from general_work
enum {
WORK_CALLED_PRODUCE = -2,
WORK_DONE = -1
};
…
/*!
Eric
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs