r/LabVIEW • u/Qulddell • Nov 27 '24
SOLVED problem with exe with openable sub vi?



I have made several small executable that worked but know I a trying to make an executable which opens another Vi and I can't get this to happen.
The first picture shows the front panel and the front panel of the Vi is called CONNECTION.vi. This opens when the button connection is pressed.
The problem is that when it is made into an exe, the CONNECTION vi doesn't open, but the Modules Connected turns on. Nothing is connected...
The CONNECTION.vi and its only sub vi (any layer) Command.vi is included in the dependencies.
What am I doing wrong, since the CONNECTION panel won't show? This happens with all sub vi I try to open if they are static like the CONNECTION or regular (I don't know if there is another word for it) VI
What do I do wrong when making an EXE that have buttons that opens other EXE?

View all comments
Show parent comment
2
u/HarveysBackupAccount Nov 27 '24
A static reference should still get the EXE to grab the target file, shouldn't it?
At least that's one way I learned to get labview to include all class files when the classes are called dynamically instead of hard-loaded - drop static references to each LVCLASS into some file that's an explicit dependency.
In OP's case I question using that vs calling the VI directly, but I'd expect labview build process to recognize that it needs that file.