LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to tell if you are running an exe or vi

Solved!
Go to solution

My searching skills suck today. 

 

I am building an exe using the application path to find certain files that need to be included.  It works great in the exe, but when making changes to the VI all the paths are broken because of the application path.  But I remember back a while someone had a way to tell if you were running the program as a VI or an exe.  Then when the program starts it can choose the correct paths to use.

 

Any ideas on how to do that?  Or is there a better way to run the program as a VI and an exe without breaking paths?

 

Thanks

0 Kudos
Message 1 of 3
(2,782 Views)
Solution
Accepted by topic author _Bryan

Drop a property node of the 'Application' class, select Application->Kind.  The output is an enum of Development vs. Runtime vs. Student vs. Embedded... you get the idea.

 

Best regards,

 

Dave

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
Message 2 of 3
(2,779 Views)

Thanks

0 Kudos
Message 3 of 3
(2,765 Views)