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 _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
