Showing results for 
Search instead for 
Did you mean: 

Can Excel run a Labview executable?

Go to solution

Hello Everyone:


Can Excel run a Labview Executable?


I would like to open an Excel File, fill some data on sheet1

and then PRESS a button on the Excel sheet1.


By pressing this button, it will start running a Labview executable.


thank you all,


\\carlos in Sunnyvale, CA




0 Kudos
Message 1 of 7
Accepted by topic author Diego2000

A LabVIEW executable is an executable like any other executable. As long as the LabVIEW Run-Time Engine is installed you can call it from within an Excel macro using the Shell() command as in Call Shell(executable).


(EDIT: Accidentally clicked Post before I had finished)


OR, are you trying to call it using ActiveX with LabVIEW as an ActiveX server?

Message Edited by smercurio_fc on 02-10-2010 03:06 PM
0 Kudos
Message 2 of 7

I believe this questions belongs more to some kind of MS Office software (specifically Excel), than to this forum. I think you should assing a macro to the button and you should call the exe through the macro command.


The macro command should look like this:


Sub LabVIEW()
Dim RetVal
RetVal = Shell("C:\Program Files\National Instruments\LabVIEW 2009\LabVIEW.exe", 1)
End Sub


Remember, you must have macros enabled. 

Message Edited by Giedrius.S on 02-10-2010 11:08 PM

While evaluating my code please have in mind that I am a LV novice. Therefore sometimes my code might violate some coding rules that I have to learn about myself. But how else could I do that... 🙂

Chart zoom with "Mouse Over" effect
Message 3 of 7

Yes you can - in fact there's an example that ships with LV that does exactly what you are wanting to do.



Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 7

Thank you all:


Mike, you mentioned that LV shipps with example?

What is the name of the example?


thank you,





0 Kudos
Message 5 of 7
The example that Mike is referring to is a workbook called "freqresp.xls" that is in the <LabVIEW>\examples\comm folder. This uses LabVIEW as an ActiveX Server, which is why I was asking whether you were looking to just launch a LabVIEW app that you built or whether you wanted to control LabVIEW using the LabVIEW ActiveX Server method.
Message 6 of 7

Thank you SMercurio:


I just wanted to run a Labview application.


Now, I would like to minimize it or make the Labview application invisible...and quit after the app runs...


Thanks for your response, I'll look at freqresp.xls




0 Kudos
Message 7 of 7