discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Trouble posting messages to block's message port


From: Sean Nowlan
Subject: Re: [Discuss-gnuradio] Trouble posting messages to block's message port
Date: Fri, 3 May 2013 13:46:17 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

On 05/03/2013 01:41 PM, Sean Nowlan wrote:
On 05/03/2013 01:26 PM, Marcus Müller wrote:
Hi Sean,
have you tried using tb.msg_connect(src, "out_port_id", dst, "in_port_id") instead of tb.connect?

Cheers
Marcus

I'm trying to post a message to a port from top_block as opposed to connecting the output port of one block to the input of "dst". The documentation indicates this can be done using "dst.to_basic_block()._post(port, msg)". Unfortunately this is not working for me.

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

More precisely, posting the message doesn't fail, so I *guess* it worked. However the handler function is not called. I used the boost::bind call to bind the message handler function following the lead of the example code.

--sean


reply via email to

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