QUESTION: Number of inputs to general_work

I have a question regarding the argument &input_items in the function
general_work from the library gr_block.h. Is my understanding correct
that
it only takes ONE STREAM of inputs at a time?

I was hoping to implement a TWO CHANNEL input (two different sources and
not
the in-phase and quadrature type of inputs). And to do this I need TWO
INPUT
STREAMS.

Is it possible to do this in GNU Radio? If so, how?

Thanks!

Read the ‘how to write a block’ document:
http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html

It clearly explains that you can have an infinite number of input
streams and how to achieve it.

  • George

These are some of the input parameters of gr_block::general_work() :

input_items vector of pointers to the input items, one entry per input
stream
output_items vector of pointers to the output items, one entry per
output stream

Am I correct in understanding that the input_items CAN point to a
vector type of inputs? I plan to implement two input channels
of vector type. Therefore I plan to pass TWO POINTERS of
vector type as “input_items” to general_work.

Note that the discussion on this website:
http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html
only used one
“channel” of inputs since it only took values from a single stream. I
plan to take TWO CHANNELS of inputs wherein each channel contains
10000 inputs.

By the way, the discussion in the above-mentioned site is not so
clear… sorrry…

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