discuss-gnuradio
[Top][All Lists]
Advanced

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

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


From: Jie Liu
Subject: Re:Re: [Discuss-gnuradio] how can I proceed if no message is received?
Date: Sun, 9 Jan 2011 06:13:20 +0800 (CST)

Thanks! I will have a try
At 2011-01-09 04:16:26,"Tom Rondeau" <address@hidden> wrote:
>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]