On Fri, Jul 18, 2008 at 03:19:08PM -0700, irene159 wrote: > > Hi, > > I have the same problem. I have already taken a look at gr_simple_framer, > but code seems slightly complicated. I would appreciate any > explanations/comments on how to code different input and output rates. > > In the block I am coding the number of input items for an output item isn't > constant. How can I handle this? > > Thanks, > > Irene
All is revealed in: http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html Basically you subclass gr_block, provide forecast and general_work methods, then call consume/consume_each at the tail end of your general_work function. Eric _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio