[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?
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
pgp4lGquCi_dz.pgp
Description: PGP signature
- [Discuss-gnuradio] complex vector output of a block, Sammour, 2010/06/09
- Re: [Discuss-gnuradio] complex vector output of a block,
Martin Braun <=
- Re: [Discuss-gnuradio] complex vector output of a block, Sammour, 2010/06/09
- Message not available
- RE: [Discuss-gnuradio] complex vector output of a block, Samy Sammour, 2010/06/09
- RE: [Discuss-gnuradio] complex vector output of a block, Sammour, 2010/06/12
- Re: [Discuss-gnuradio] complex vector output of a block, Eric Blossom, 2010/06/12
- Re: [Discuss-gnuradio] complex vector output of a block, Sammour, 2010/06/13
Re: [Discuss-gnuradio] complex vector output of a block, Eric Blossom, 2010/06/09