discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] QUESTION: Number of inputs to general_work


From: Jonas Gacrama
Subject: Re: [Discuss-gnuradio] QUESTION: Number of inputs to general_work
Date: Mon, 7 Jan 2008 10:29:32 +0800

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<float> type of inputs? I plan to implement two input channels
of vector<float> type. Therefore I plan to pass TWO POINTERS of
vector<float> 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...



On Jan 7, 2008 6:41 AM, George Nychis <address@hidden> wrote:
> 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
>
>
>
> Jonas Gacrama wrote:
> >
> > 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!
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>




reply via email to

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