discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] how can I proceed if no message is received?


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] how can I proceed if no message is received?
Date: Sat, 8 Jan 2011 15:16:26 -0500

On Tue, Jan 4, 2011 at 2:19 PM, Jie Liu <address@hidden> wrote:
> In GRC, I defined a message queue like below:
>         self.msg_q = gr.msg_queue()
>
> It waits for the USRP transmitter, and read the message received in the USRP
> receiver in the local machine, using the code like below:
>
>         m = tb.msg_q.delete_head()
>
> But if there is no message sent. It seems that the program halts and waits
> for the message to be sent. How can I let the program continue to run from
> here?
>
> Best

There is a msg_queue method "delete_head_nowait." Look at the
gr_msg_queue page in the Doxygen documentation.

Tom



reply via email to

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