01-24-2018 10:55 AM
I think the best way to master AF is to do simple step one at time.
In the zip file I did a project with:
Launcher.vi --> start "controller" actor
then controller actor starts "GUI" actor in his actor core, and shows his front panel.
GUI buttonSpawnTask will programmatically spawn "Task" actor (and I guess they are added to the Controller's child actors collection) and show their front panel.
When I click Exit button, I send a stop msg to controller that will stop all childs by default.
It works with GUI actor, GUI is closed.
Tasks are not closed. Why?
How can I see the Nested actor array content?
01-24-2018 11:05 AM
01-24-2018 12:57 PM
How can I see the Nested actor array content?
I don't have the monitored actor installed, so I couldn't look at your code, but in answer to your last question, you can't. If you want to keep track of your nested actors, you need to grab the enqueuer when you launch them and store the enqueuer in your actor private data.
01-25-2018 01:36 AM
thanks, so I launch a nested actor and the AF adds its enqueuer to the caller's [nested actors] collection (array), so that it is possibile to "auto-shutdown" the hierarchy once the root gets the stop msg.
But if I don't "store" those enqueuers I don't have any chance to message those spawned actors.
I zipped the sources without the MGI monitored actor plugin. (it's very usefull btw)
My error was that I was not properly exit the helper loop (I used a variable, then switched to user event.... I saw the solution with variable somewhere btw)