LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Having placed more than one top-level VI in builder, is there a way to programmatically call the second application?

Builder allows for more than one Top-Level VI. The resulting Executable launches both applications at once. If I terminate one application, is there anyway to launch it again programmatically?
0 Kudos
Message 1 of 5
(2,731 Views)
You could monitor the names of all the VI's in memory. If the one you want running is not in the list, you can launch it dynamically.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(2,731 Views)
The resulting executable path and name is not known. I guess that when you build multiple top-level VI's it embeds the least significant executables within the first executable in the builder top-level vi list.

At least in the Solaris environment it does.
0 Kudos
Message 3 of 5
(2,731 Views)
If you strip the path twice you should get the path to the folder holding the VI's.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 5
(2,731 Views)
You don't need the Top Level VI path. Just open a reference to the VI using its name in a path constant and open its front panel using the VI server.


LabVIEW, C'est LabVIEW

0 Kudos
Message 5 of 5
(2,731 Views)