discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] What happens to a block as wait() finishes?


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] What happens to a block as wait() finishes?
Date: Mon, 2 Aug 2010 14:27:38 -0700
User-agent: Mutt/1.5.20 (2009-08-17)

On Mon, Aug 02, 2010 at 09:16:03PM +0100, John Wilson wrote:
> Hello,
> 
> I'm just wondering, what happens within block code when whatever shuts down
> the graph after the gr_top_block.wait() executes? Is there condition
> detectable from within a block which could be used to run some code when the
> block pauses?

Nope.  The block (at least the user code) doesn't know it's done.

> I want to copy the remaining input buffer into an internal
> memory buffer to fix a problem I'm getting with the FIR block over a wait()
> run() cycle.

I think the easiest way to handle this is to write a new FIR block
that does _exactly_ what you want.  If you need to add a new 'please
stash the delay line now' method, just add it, then call it when you like.

> Also I'm guessing that I can overload the gr_block.start() function within a
> custom block declaration to copy this buffer back to the input buffer
> somehow?

Those are not the hooks you're looking for.

Eric



reply via email to

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