I did a project to practise AF and I have some questions.
How to send message to Actor Framework from one application if another application launched this Actor? I used Functional Global with Caller-To-Actor Enqueue.ctl, but I'm not sure that it's good idea.
And, what is connected with previous question, how to check if Actor was launched? I used Send and Wait for Response - sending empty message and checking the Error, but it's rather a trick.
I enclose my project - ATM is the application which sends messages to Server (Actor launched in Run Server.vi and executing independently).
If it's not clear please let me know
General answer is "You don't do message arbitrary actors because it breaks the encapsulation." For specific cases where the remote actor really is serving as a port listener, refer to the implementation of Actors on RT targets for an example of doing this. The basic summary of that example is that you have one nested actor whose Actor Core.vi listens to the network port (through whatever communications magic you prefer to use, we like Network Streams) and generates messages for itself or its caller based on the actions of the network connection.