Load Sub-Panel VIs in LabVIEW Executable Front Panel Without Using "Always Included"

Updated Aug 10, 2022

Reported In

Software

  • LabVIEW

Issue Details

I have a few Sub-Panel VIs that need to be always interchangeable in a LabVIEW Executable (EXE). For that reason, I couldn't put all the Sub-panel VIs under  "Always Included" in the build specification settings. I also need to build each time I want to use each new Sub-Panel VI. Is there any way to accomplish this in LabVIEW Executable? 

Solution

To get around this behavior in LabVIEW Executable, the VI has to be compiled before it can be called by Open VI Reference. Below is the modified shipping example, Multiple VIs in a Subpanel.vi, to call the subVI in the packed library.

The subVI names are hard-coded in the Main VI for this example, but you can replace it with reading from text file, allowing file name change at runtime.