[Top][All Lists]

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

Re: [Discuss-gnuradio] How to receive message from subblock using topblo

From: Marcus Müller
Subject: Re: [Discuss-gnuradio] How to receive message from subblock using topblock?
Date: Tue, 21 Apr 2015 09:21:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Dear LTP,

your top_block [1] is a msg_accepter, just like every other block in your system, and a basic_block. Hence, it has a a post()[3] method, it has a message_port_register_in()[4] etc.

You should be able to follow what's described in the Guided tutorials, Part 5, section 5. [2] If you haven't already, I strongly recommend reading Part 1-4 first -- they are a fun read (I hope), and they explain a lot of the core concepts quite well.

Best regards,
Marcus Müller

[1] http://gnuradio.org/doc/doxygen/classgr_1_1top__block.html
[2] https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials
[3] http://gnuradio.org/doc/doxygen/classgr_1_1msg__accepter.html#a03b0afcc820d3454d29f0ada3b89e2fc
[4] http://gnuradio.org/doc/doxygen/classgr_1_1basic__block.html#a362b6de38292cca9c1d56439a6efad04

On 04/21/2015 07:09 AM, Luong Tan Phong wrote:

I'm newbie with PMT and I created a block was inherited from gr::sync_block and sent out messages.
Could you tell me how to receive messages from my block on topblock to process them, please?

With best regards,


Discuss-gnuradio mailing list

reply via email to

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