LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting a VI from a different directory

Hi, I am having troubles inserting VI's as subpanels. This process works fine if the VI that is being called is in the same directory as LabVIEW is working in (v7.0), but not if it's in a different directory. I specify the directory the VI is in and it seems that it opens since there are no errors, but the the subpanel doesn't show anything!
Any ideas?
Thanks.
0 Kudos
Message 1 of 4
(2,727 Views)
Did you check the "Window appearance" in the "VI property" menu (right click in the icon), to be shure that the front panel options tis set to "show front panel when called"

Doc-Doc
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 2 of 4
(2,727 Views)
It works perfectly fine if LabVIEW is already working in the same directory as the VI's are in - ie if the files it programmatically opens/closes AND the VI's are in the same directory (in my case F), but not otherwise. If the files are in "F" and the VI's are in "F:\Labview" it still works, but not vice versa.
0 Kudos
Message 3 of 4
(2,727 Views)
Hello �

Are you explicitly opening, writing and closing the file or are you using one of the high level VIs that handle the opening and closing for you?
If you are explicitly opening and closing, you could try using the File Dialog VI (Functions >> All Functions >> File I/O >> Advanced) before the Open File function so that you are prompted to navigate to the file you want to open.
Navigating to the desired file and specifically selecting it from the right directory should fix the problem.

S Vences
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,727 Views)