How to receive message from subblock using topblock?

Hi,

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,

LTP

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 Tue, Apr 21, 2015 at 3:21 AM, Marcus Müller
[email protected]
wrote:

Adding to Marcus’ list of references:

http://gnuradio.org/doc/doxygen/page_msg_passing.html

Tom

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs