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: Marcus Müller
Subject: Re: [Discuss-gnuradio] Trouble posting messages to block's message port
Date: Fri, 03 May 2013 19:26:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

Hi Sean,
have you tried using tb.msg_connect(src, "out_port_id", dst, "in_port_id") instead of tb.connect?

Cheers
Marcus
Am 03.05.2013 00:35, schrieb Sean Nowlan:
I'm trying to create a block that accepts messages and prints them out.
I created a block that extends gr_block and it has no stream ports: I'm
using gr_io_signature(0,0,0) for input and output. I am following the
guidance of this page:

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

 From a test Python script I instantiate a top_block /tb/ and then
connect my stream-port-less block with tb.connect(block_instance). I
follow the lead of the page above to post a message, but the bound
handler function never gets called (I inserted a line to print "I'm
here!!" to stdout when the function gets called).

Am I having issues because my block doesn't have any stream inputs or
outputs?

Thanks,

Sean

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

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