Question regarding gr_interleave

Hi!

Is it possible to interleave from three different sources by using
gr_interleave? For example, will the following codes be possible using
gr_interleave:

src0 =
src1 =
src2 =

interleave = gr.interleave(gr.sizeof_float)
downstream =

fg.connect(src0, (interleave, 0))
fg.connect(src1, (interleave, 1))
fg.connect(src2, (interleave, 2)) # Is this posssible?

fg.connect(interleave, downstream)

EXPECTED OUTPUT:

combined_inputs[0] = src1[0]
combined_inputs[1] = src2[0]
combined_inputs[2] = src3[0]

combined_inputs[3] = src1[1]
combined_inputs[4] = src2[1]
combined_inputs[5] = src3[1]

On Tue, Jan 29, 2008 at 05:27:44PM +0800, Jonas wrote:

Hi!

Is it possible to interleave from three different sources by using
gr_interleave? For example, will the following codes be possible using
gr_interleave:

To find the answer to this question, you can either
see the section called “Detailed Description” here:

http://gnuradio.org/doc/doxygen/classgr__interleave.html

or you could take a quick peak at the gr_interleave.h file and read
the documentation in there.

FYI, you can generate an up-to-date copy of the html documentation on
your own machine by:

$ cd
$ ./configure --enable-doxygen
$ make

and then view it with

$ firefox file://$PWD/gnuradio-core/doc/html/index.hmtl

Thanks for your reply!

I now found the error in my code regarding using gr_interleave. I had to
pass two “sptr” types so that they can connect. So now I have another
problem.

Since my sources are all of “list” type that has been generated in
Python
without using any GNU Radio blocks; is there something that could
convert
these list types into sptr types that I can connect to GNU Radio’s
signal
processing blocks?

Thanks!