On Sun, Dec 13, 2009 at 12:32:17PM +0100, elettra.p...@libero.it 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


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to