[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Problem with gr_vector_float type
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] Problem with gr_vector_float type |
Date: |
Sun, 13 Dec 2009 08:20:30 -0800 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Sun, Dec 13, 2009 at 12:32:17PM +0100, address@hidden wrote:
> Hi all,
>
> I'm having a problem trying to use gr_vector_float type.
> I don't have
> any problem to work with streams, but when I try to create a block that takes
> a
> vector of float numbers on its input and produces a vector of float numbers
> on
> its output (N:N) I always receive this error:
>
> ValueError: itemsize mismatch:
> stream_to_vector(2):0 using 4096, xcor_ff(4):0 using 4
>
> I understood this error
> is caused by different vectors' size, but I don't understand what I did wrong
> in my code.
>
> This is c++ source of my block (I'm trying to create a block that
> compute the autocorrelation of its input vector):
Your i/o signatures are incorrect. They specify that the size of an
item is sizeof(float), but you probably want something like
sizeof(float) * fft_size
Eric