LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange current VI`s path returned in standalone application

Solved!
Go to solution

I know that there is a difference in the path returned when using the "Current VIs path" in the development environment and in a standalone application, but this is not what I had expected: This is the path returned from the Current VIs path in the standalone application:

C:\LabView-programmer\RADHAZ-programmer\RADHAZ\builds\rad.exe\RADHAZ-programmer\RADHAZ\rad.vi. Why is this the correct path to the VI?

 

If I strip this path once, and build a new path with the name of my dynamically called VI  I get: C:\LabView-programmer\RADHAZ-programmer\RADHAZ\builds\rad.exe\RADHAZ-programmer\RADHAZ\instr.vi. It starts from this path, but It won`t load some text-files located at C:\LabView-programmer\RADHAZ-programmer\RADHAZ\builds\kal-data without making changes to the instr.vi.

 

I tried to used the App.Dir property to find the correct top level directory, and it returns C:\LabView-programmer\RADHAZ-programmer\RADHAZ\builds as expected. But this is not the path that the dynamically called VI need.

 

Any suggestions is appreciated..

 

I searched for a detailed tutorial for setting up the build specification, but didn`t find any that helped much.

 

Gunnar

 

 

 

0 Kudos
Message 1 of 5
(2,282 Views)
Solution
Accepted by topic author Gunnar_Kulbotten

HI Gunnar,

 

have you tried the last point of the Advanced AppBuild settings as described in the help?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,266 Views)

Thanks 

0 Kudos
Message 3 of 5
(2,181 Views)

Hi

 

For a little more explanation take a look at this KB

Basically when you create an .exe file you get an extra folder.

 

Reagards

Espen

 

 

0 Kudos
Message 4 of 5
(2,162 Views)

I used GerdW`s advice (advanced settings"Use LabVIEW 8.x file layout"), problem solved!

 

Gunnar

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