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
> [EMAIL PROTECTED]


You'll need: consume_each and forecast.

See http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html

Eric


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to