[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Timer
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] Timer |
Date: |
Tue, 10 Nov 2015 15:38:10 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
You can look at the message strobe block for inspiration; it's written
in C++ but the concepts translate.
M
On 10.11.2015 14:36, West, Nathan wrote:
> Spin off a thread inside your block that counts and calls the
> appropriate function. Boost bind might help abstract away a specific
> function.
>
> On Tuesday, November 10, 2015, Roee Bar <address@hidden
> <mailto:address@hidden>> wrote:
>
> Hello,
>
> I have written a OOT module (in python) that receives and send PMT
> messages according to some state machine.
>
> However, I need a timer so that the block will transmit a message
> after some timeout. I.e., if nothing happens for x seconds, a
> function is called.
>
> Is there any built-in mechanism in gnuradio for this?
> If not - I thought I should implement another block that act as a
> timer (i.e., it receives a message "wait x seconds" so it goes to
> sleep for x seconds and sends a message back when it wakes up). But
> there must by an easier way than this.
>
> Thanks in advance,
> Roee
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>