Re: [Discuss-gnuradio] PROBLEM: Understanding gr_block's implementation

2008-01-06 Thread Jonas
Yes, each "item" is supposed to be a vector of 1 floats; and yes, each input stream contains 1 floats. I chose a vector type for flexibility but I could always go back to turning it into a "plain old data". In that case, could I pass a multidimensional array as an input argument to general

Re: [Discuss-gnuradio] PROBLEM: Understanding gr_block's implementation

2008-01-06 Thread Eric Blossom
On Mon, Jan 07, 2008 at 10:28:39AM +0800, Jonas Gacrama wrote: > 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 > outp

[Discuss-gnuradio] QUESTION: &input_items in gr_block

2008-01-06 Thread Jonas
To make things clearer regarding my previous post of a similar subject, I have included part of my code to this post: int divcom_rca_ff::general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_ite

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

2008-01-06 Thread Jonas Gacrama
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_itemsvector of pointers to the output items, one entry per output stream Am I correct in understanding that the input_items CAN point

[Discuss-gnuradio] PROBLEM: Understanding gr_block's implementation

2008-01-06 Thread Jonas Gacrama
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_itemsvector of pointers to the output items, one entry per output stream Am I correct in understanding that the input_items CAN point

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

2008-01-06 Thread George Nychis
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 i

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

2008-01-06 Thread Jonas Gacrama
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 ty

[Discuss-gnuradio] PROBLEM: Making a new signal processing block

2008-01-06 Thread Jonas Gacrama
have tried to make a new signal processing block which that is called divcom. It is a diversity combining technique used to mitigate the effects of multi-path fading. I am trying to implement this algorithm using GNU Radio. I made my signal processing block and I now wish to integrate this to the

[Discuss-gnuradio] PROBLEM: Making a new signal processing block

2008-01-06 Thread Jonas Gacrama
I have tried to make a new signal processing block which that is called divcom. It is a diversity combining technique used to mitigate the effects of multi-path fading. I am trying to implement this algorithm using GNU Radio. I made my signal processing block and I now wish to integrate this to th