11-18-2008 05:38 AM
Hi.
I have prepared a program in Labview in order to control a system. I have worked with files and folders to store important data from the plantand i works correctly.
Now I want to generate one executable file(I2P.exe) to install it instead to have the vi files. When I prepare it and install it in other computer it doesn't work correctly because the folder and files needed are not created. I have included a path and file generator if them don't exist.
To solve this problem I read the actual path where the program has been installed but the result is C:\program files\I2P.exe and I think that the actual path should be C:\program files\ . Then there is a problem generating the path c:\program files\I2P.exe\pass data and nothing works.
How can I solve it?
Thank you.
11-18-2008 05:48 AM
You need the property node App.Kind and check if you are running in a runtime or development environment.
Running in a runtime need another Strip Path function to get the basic folder. In development environment your vi path is <path>\myVi.vi and in runtime environment it is <path>\myProg.exe\myVi.vi.
11-18-2008 06:03 AM
Thanks.
How can I know if the program is in runtime or development enviroment? Sometimes I have to make changes and then I generate again the exe file. Where can I find the path for the runtime enviroment?
11-18-2008 06:40 AM - edited 11-18-2008 06:41 AM