02-10-2010 02:24 PM
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
Solved! Go to Solution.
02-10-2010 03:04 PM - edited 02-10-2010 03:06 PM
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?
02-10-2010 03:08 PM - edited 02-10-2010 03:08 PM
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.
02-10-2010 03:19 PM
Yes you can - in fact there's an example that ships with LV that does exactly what you are wanting to do.
Mike...
02-10-2010 03:49 PM
Thank you all:
Mike, you mentioned that LV shipps with example?
What is the name of the example?
thank you,
02-10-2010 05:21 PM
02-10-2010 05:31 PM
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