08-15-2019 03:10 PM - edited 08-15-2019 03:45 PM
Hi all!
Yesterday, I had a quite unspecific question sending Messages upwards the tree of Actors in Actor framework. At that time, I had copied & pasted a lot from examples and tutorials. Now, I started from scratch and simply want to send a Message from a Nested actor to the Calling Actor. In the attached code, I expect a DialogBox to appear when the Nested Actor is launched. However, nothing happens.
Could anyone of you help me to find the problem, and, even more important, tell me how to debug things like this?
I don't know if this is of any importance, but the forum guidelines ask to provide the following information:
Labview version: 2019
OS: Suse Linux Leap 15.1, Kernel 4.12.14-lp151.28.10-default , gcc 7.4.0
Note that I'm not sure whether the attached example code is really minimal to show my problem, I even think it's quite bloated. However, with my very limited knowledge on Labview I believe that I cannot further reduce it. I expect this to be wrong 😉
Thank you all in advance!
Solved! Go to Solution.
08-15-2019 03:41 PM
Many LabVIEW users do not quickly upgrade to the latest version (2019 just came out this summer) for various reasons. You will probably get more people (including me) to look at your code if you do a "Save for Previous Version..." and at least go back to ver 2018.
08-15-2019 03:46 PM
@NIquist wrote:
Many LabVIEW users do not quickly upgrade to the latest version (2019 just came out this summer) for various reasons. You will probably get more people (including me) to look at your code if you do a "Save for Previous Version..." and at least go back to ver 2018.
I have updated my post.
08-15-2019 04:45 PM
In the actor core, you need to send the message before (or in parallel with) calling the parent actor core. Since you are calling it after, it won't send until the actor is stopping (which is not really useful...)
As for debugging, try using Monitored Actor.
08-15-2019 05:04 PM
I would also recommend using Panel Actor, it will make doing your UI stuff a lot easier.