Re: Question about inputs and outputs of a block

I’d like to know if it’s possible to create a block with two inputs (or two
outputs) having different sizes.
For example, a block that takes a vector of N numbers on one of its two
inputs
max inputs) as the first two arguments and the next two arguments are
gr_make_io_signature2 (2, 2, sizeof (gr_complex), sizeof(char))

Tom

Thank you Tom, but probably I have not expressed correctly.
I’d like to create a block that takes as first input a vector of N
float and
as second input only one float.
Is it possible?

Elettra

On Thu, Feb 25, 2010 at 05:35:32PM +0100, [email protected] wrote:

[email protected] wrote:

Best Regards,

Thank you Tom, but probably I have not expressed correctly.
I’d like to create a block that takes as first input a vector of N float and
as second input only one float.
Is it possible?

Elettra

gr_make_io_signature2 (2, 2, N*sizeof(float), sizeof(float))

Works in C++ or python mod syntax.

Eric