LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening Excel from LabView

    Hey all,

I am trying to figure out how to open an Excel document from within a running LabView .vi.  I have been looking around here but I can't seem to find exactly what I am looking for.  What I have is a GUI running to operate some test equipment.  The user needs to be able to create and load a configuration file that is created with Excel.  I have added options to my Run Time Menu to make this easy for the user, but I can't figure out how to actually execute it in the code.

I plan on having the template they will use at a location like this:

C:\Program Files\Naitonal Instruments\LabView 8.2\Templates\Interrogation Setup.xls

So I am trying to figure out the best way to execute this.  I was going to use the System Exec.vi but, being a DOS prompt, it can't handle the spaces in the directory.  Is there a better way for me to do this?

Really appreciate it.
0 Kudos
Message 1 of 5
(2,894 Views)
Hi twayne,
you can use the "Open URL in Default Browser.vi". Connect your path to it.
Mike


Message Edited by MikeS81 on 07-09-2008 03:36 PM
0 Kudos
Message 2 of 5
(2,892 Views)
You can interface excel via ActiveX in LabView. Have a search through the forum with these keywords. There is also a thread containing links to excel related threads, but I've no bookmark at hand.

Felix
0 Kudos
Message 3 of 5
(2,889 Views)
Hi twayne,
if you want to read/write from/to the excel file, then see this link http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=2391#M2391
 
Hope it helps.
Mike
0 Kudos
Message 4 of 5
(2,886 Views)
Aha!  Mike your answer was perfect.  Thanks!

I haven't gotten into usnig the ActiveX funtions yet, so the simpler the solution the better.  Smiley Very Happy
0 Kudos
Message 5 of 5
(2,883 Views)