discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Insert messages in queues?


From: Martin Braun
Subject: Re: [Discuss-gnuradio] Insert messages in queues?
Date: Sun, 12 Apr 2015 09:25:30 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 11.04.2015 20:38, madengr wrote:
If I'm using a block that has a message port output, is there a way to put
those messages into a message queue?  For instance:

self.message_queue = gr.msg_queue()
self.msg_connect((self.gsm_control_channels_decoder, 'msgs'),
(????message_queue????, 0))

I have used gr.msg_queue() with blocks.message_sink() but that only accepts
items such as complex, float, etc.  I need to take the messages generated by
any old block and parse them outside the flowgraph.

 From what I have read, I thought all blocks that handle messages have
queues, so shouldn't I be able to pop them directly out of that block?  I
guess I'm confused.  Are there two type of message passing; an old one that
uses queues, and a new one that uses PMT?

Hey Louis,

Yes, there are two ways, and they're completely different. The old message queues will be deprecated soon, so anything with gr.msg_queue() in there will, at one point in the future, stop working.

Look at the Python output of some of the message examples we provide, also check out this manual page: http://gnuradio.org/doc/doxygen/page_msg_passing.html

M



reply via email to

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