To isolate the problem, I removed all the complex code and wrote the
following in work() to generate a vector of random numbers:

        gr_complex *out =(gr_complex *) output_items[0];
        unsigned int index = 0;
        for (unsigned int m =1; m<=4; m++)
        {
                *(out+index)=gr_complex(std::rand(), std::rand());
                index++;
        }
      return noutput_items;

Here, I get a bunch of complex numbers followed by many zeros followd by
many complex numbers. The number in each group is not constant.

Any suggestions to control this?

Best wishes,

Sam
-- 
View this message in context: 
http://old.nabble.com/complex-vector-output-of-a-block-tp28828557p28831629.html
Sent from the GnuRadio mailing list archive at Nabble.com.


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to