discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Different input/output rate


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Different input/output rate
Date: Fri, 18 Jul 2008 16:02:19 -0700
User-agent: Mutt/1.5.17 (2007-11-01)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]