LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically load VIs using List Folder and Open VI Reference

Hi guys,
 
I use the following structure to load VIs dynamically:
 
 
It works perfectly when I’m in development mode, but I do not know how to build the executable from this structure, because the “List folder.vi” does not work. Should I save the VIs in a separate folder or in an llb and load them from there or is it possible to bundle all the VIs in an exe and call them dynamically from there somehow?
 
Ideally at the end I would like to have only one exe with all the VIs bundled in it, but I don’t know if it can be done or not.
 
Thanks
 
Attila
0 Kudos
Message 1 of 5
(2,948 Views)
What does the "vi path" control refer to. I'm guessing your problem is a variant of this: Why Does My Executable Not Work When Using the Current VI's Path Constant?
0 Kudos
Message 2 of 5
(2,937 Views)
Probably because the VI Path you use as input isn't the same, because now
the VI is in the executable.

Vi path of VI foo.vi will be c:\test\foo.vi when run in the development
environment, but it will be c:\test\foo.exe\foo.vi when called in an
executable at the same location.

Regards,

Wiebe.


0 Kudos
Message 3 of 5
(2,931 Views)
Guys,
 
I’m using different paths depending on the execution mode. This is not the issue. The problem is the “List Folder.vi”. I cannot list the files within the exe. Is there any other method I could use?
0 Kudos
Message 4 of 5
(2,921 Views)
0 Kudos
Message 5 of 5
(2,917 Views)