LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programatically determine if running from a vi or from an exe?♦

Years ago, I thought I could use the Call Chain to determine this.  Perhaps my memory is wrong....

I need to determine whether running from a .vi or from an .exe so I can determine what the file version of the .exe is, if it's running from an .exe.

Thanks,
Tom
0 Kudos
Message 1 of 6
(3,358 Views)
Use an application property and select property "app.kind". Here are the possible results:
  1. Development System, including the Base Package, Full Development System, or Professional Development System
  2. Run-Time System
  3. Student Edition
  4. Embedded LabVIEW, including LabVIEW Real-Time
  5. Evaluation
  6. Custom
Message 2 of 6
(3,357 Views)
You're a fast typist!  Thanks!
-Tom
0 Kudos
Message 3 of 6
(3,352 Views)
Well, I copied the table from the labVIEW help. (Almost) no typing required. 😄
 
 
Message 4 of 6
(3,347 Views)
How can you do this on a RT target? It returns Embedded whether or not the application is compiled.
0 Kudos
Message 5 of 6
(3,032 Views)

Try this.

 

isitexe.png

 

p.s. this works in windows. on an embeded device you may want to reverse the logic and see if the file is .vi ? Not sure if you get a .exe file on the embeded device since it's probably running linux on it.

Message Edited by pRoFiT on 01-06-2010 08:12 PM
- A minute saved is a Minute earned!
0 Kudos
Message 6 of 6
(3,004 Views)