discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] complex vector output of a block


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] complex vector output of a block
Date: Wed, 9 Jun 2010 12:19:59 -0700
User-agent: Mutt/1.5.20 (2009-08-17)

On Wed, Jun 09, 2010 at 03:40:07AM -0700, Sammour wrote:
> 
> Dear all,
> 
> I'm writing a block that outputs a vector of complex number inheriting from
> gr_sync_block. In my code I wrote:
>       gr_complex *out =(gr_complex *) output_items[0];
>       gr_complex out_vector [N*N];
> 
> where out_vector is the array where the actual output values are stored. I
> copied the data to the pointer using:
> 
>       memcpy(out, out_vector, N*N*sizeof(gr_complex));
> 
> before returning noutput_items from work(). make and make install work fine;
> no error shows up. The problem is when I run the flow graph taking the
> output of my block to a file sink, the values stored are all zeros. 
> 
> Any help or suggestions? 
> 
> Thanks a lot.
> 
> Sam

What are your io_signatures?

Can you describe more clearly what your block is trying to do,
including it's input type, output type, how many inputs it consumes
for each output produced, etc?

Eric



reply via email to

[Prev in Thread] Current Thread [Next in Thread]