[Top][All Lists]

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

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

From: Martin Braun
Subject: Re: [Discuss-gnuradio] complex vector output of a block
Date: Wed, 9 Jun 2010 14:56:49 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

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?


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

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

Attachment: pgp4lGquCi_dz.pgp
Description: PGP signature

reply via email to

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