LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generar executable programs.

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.

0 Kudos
Message 1 of 4
(2,719 Views)

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.

Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 4
(2,717 Views)

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?

0 Kudos
Message 3 of 4
(2,707 Views)
From the application control palette place a property node on the block diagram. The text in the yellow top aerea should be App by default. Make a right click on the text Property and from the menu choose Select Property >> Application >> Kind. Then check the output of the property node against the value "Run time System".
Message Edited by waldemar.hersacher on 11-18-2008 01:41 PM
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 4 of 4
(2,689 Views)