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? 

Hi Sammour,

looks like your generating a lot of output data (or how large is N^2?).
Is the number of samples in the file what you expected?
Do you have a history in your block? And what kind of operation are you
performing in work?

MB


-- 
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-3790
Fax: +49 721 608-6071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Attachment: pgpvrv6sf3pUq.pgp
Description: PGP signature

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to