07-17-2019 06:55 AM
I'm working on a project.Now I need to put many actors (code reuse, many from the same Actor) generated using the Actor Framework in the subpanel on the front panel.How do I do it?
Solved! Go to Solution.
07-17-2019 08:18 AM
Here's how I have accomplished this. First, in the actor that has the VI you want inserted into the subpanel you can add a VI Refnum to it's private data. In Pre Launch Init obtain a static reference to the VI to be inserted and bundle it into the class data. Then create a VI for your actor that takes a subpanel reference as an input, and then wire that reference to an invoke node, select Insert VI, and wire in the VI Refnum from the class data, and make a message for that VI. In your UI Actor, when the event occurs that you want the VI to be inserted on you can send the message you just created with the reference to the subpanel in your UI as the input.
You can also use the example below as a reference. It is slightly more complicated as it uses protection proxy classes for the references which may or may not be necessary depending on your situation, but the same principles I described still apply.
08-06-2019 05:25 AM
I made a video specifically on the topic of Actors and sub-panels: