[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] How to implement a block derived from gr_block
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] How to implement a block derived from gr_block |
Date: |
Tue, 10 Apr 2007 07:26:43 -0700 |
User-agent: |
Mutt/1.5.9i |
On Tue, Apr 10, 2007 at 12:17:25AM -0700, George Barrinuevo wrote:
> I created a block from gr_sync_block and later found
> that it does not work properly since gr_sync_*
> requires that the input and output rate are
> synchronous, e.g. having 1:1, 1:N, N:1 fixed ratio.
> However, my block has varying input and output rates
> which implies I need to derive it from gr_block. My
> question is, what is the procedure to convert a block
> from gr_sync_block to gr_block? I tried making the
> changes, but got errors and 'make' time. The main
> different I see is: 1) use gr_block instead of
> gr_sync_block, 2) use general_work() instead of
> work().
>
> Am I missing anything?
>
> Thanks,
>
>
> George Barrinuevo
> address@hidden
You'll need: consume_each and forecast.
See http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html
Eric