|
From: | Elmore Family |
Subject: | Can't get message passing working when calling a class method from main() |
Date: | Fri, 29 Nov 2024 19:56:40 -0500 |
I am attempting to send a message from an OOT module to a gr-display
module. This task is part of a large project with a complicated flowgraph.
Therefore I am going to provide only the pertinent part of the code. I hope this
is sufficient to understand my problem with some explanation.
The ft8_rxtx OOT module is connected to the gr-display module in the
flowgraph.
The code is as follows:
from gnuradio import gr In main() I am calling send_msg as evidenced by the use of a print
statement in the method which correctly displays MAIN. However, the
message_port_pub() does not send the message to the gr-display.
If set_FT8 is called, the self.send_msg(“Help”) executes properly and the
self.message_port_pub() executes properly. Both send the message “Help” to the
gr-display.
Thus, the message passing works when calling send_msg from a class method
but does not work when called from main(). Why not? What am I leaving out?
Jim |
[Prev in Thread] | Current Thread | [Next in Thread] |