09-30-2019 03:51 PM - edited 10-02-2019 11:27 AM
Hi there!
Are the Launch Nested and Root Actor VIs available for LV 2011? I have AF 4.1, but I am only seeing the Launch Actor VI.
Alternatively, how would I implement similar functionality? I got stuck following this Zero coupling tutorial when I need to launch two child actors (the addition and multiplication actor in that case); the messages don't return back to the root actor. Is this what the Address Message function could be used for? Am I missing something else?
Thank you very much!
10-02-2019 08:20 AM
Hi illusivelf,
Older versions of AF only had Launch Actor.vi. It was cumbersome, so at some point (maybe LV2014?) they added Launch Root Actor.vi and Launch Nested Actor.vi. Both of those wrap up the cumbersome code and make it easier to launch actors. Even in new versions, Launch Actor.vi still works for special cases, but it's not recommended.
Anyway, I don't know the exact history of AF & version numbers, so I can't say whether AF 4.1 should include those VIs or not. Maybe look for those VIs on disk in vi.lib?
Alternatively, check out this Bloomy article on AF. About halfway down the page they show old vs. new versions of Launcher.vi (which is a VI you write in your application, not part of the AF library).
https://www.bloomy.com/comment/18
Good luck!
Dan
10-02-2019 11:27 AM - edited 10-02-2019 11:27 AM
Hi Dan,
Thanks for your suggestions! It seems like LV2014 is when they added that functionality. I checked the AF library I have, and the new launch vis don't exist there.
I did end up figuring out a way around this (if anyone happens to be in the same position)! Launch Nested Actor is convenient because it includes the caller's enqueuer so the child actor knows where to send a response msg, as well as allows the parent to automatically close the child actor. A little annoying, but I ended up closing all of the actors manually, and added a return enqueuer field to all of the messages (from this post).
Thanks again!