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
-- 
View this message in context: 
http://old.nabble.com/complex-vector-output-of-a-block-tp28828557p28828557.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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

Reply via email to