NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Working Directory problem

I'm runing a program compiled in CVI 8.5 that is giving me a random problem.

The Function GetDir(gExecFolder) Doesn't Return the same value all the time, which creates an error when accessing files that Do Not have a full path.

 

e.g. MyFunction("FileName.ext");

 

The error is File Not Found.

 

Please take a look at these 2 images showing the different outputs of GetDir(gExecFolder).

 

Good Output:

getdir_output_ok.jpg

 

Bad Output:

getdir_output_NotOk.jpg

 

Note that I stopped the execution after this line executed.

 

Thanks for your help.

0 Kudos
Message 1 of 1
(3,350 Views)