LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read .xls in Labview 7.1

How to read excel file using Labvie 7.1?
0 Kudos
Message 1 of 9
(4,670 Views)
Open your example finder and search for "excel". See how far you get. 🙂
0 Kudos
Message 2 of 9
(4,659 Views)

Well if you look in the examples you will see a couple of examples. If it a true xls file you must use ActiveX to talk to excel. If you have the report generatio toolkit from NI it will not be to bad if you do not then you will have to code the functionality. If you would have searched on excel before posting you would have found numerous topics about it on this site.

 

For more information and some sample VI's and tool kits, you can go to the excel board




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 3 of 9
(4,653 Views)
One thing to bear in mind is that the communications/control mechanism involved is ActiveX. The problem is that MS has exhibited a tendency to muck around with the interface to Excel when doing an upgrade. Worse, the mucking around has in the past resulted in changes that were guaranteed to break existing applications calling Excel.

Just something to remember for possible future reference.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

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

For help with grief and grieving.
0 Kudos
Message 4 of 9
(4,648 Views)

I tried to run examples and sample vi, from excel forum. But I guess they are in Labview 8.0 and higher versions so when I try to run them using Labview 7.1, it gives error code-9 .

I also tried read from spreadshit.vi but I am not able to plot a graph. 😞

Thanks,

Nidhi

0 Kudos
Message 5 of 9
(4,643 Views)
"I also tried read from spreadshit.vi but I am not able to plot a graph. :-("

My MS sentiments exactly.
Smiley Very HappySmiley Very HappySmiley Very HappySmiley Very Happy

Seriously though, you need Excel installed to be able to use the examples, and as already pointed out, if you have the wrong version, it won't work....

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 6 of 9
(4,607 Views)
Just how thin can you spread.....errr...nm.

Message Edited by Bill@NGC on 05-13-2007 03:58 PM

0 Kudos
Message 7 of 9
(4,595 Views)
I agree with altenbach; the shipping examples in LabVIEW 7.1 should be the best place for you to get started accessing Excel files through ActiveX. In LabVIEW, click on Help >> Find Examples to open the Example Finder. Selec the "Search" tab and type in "excel" to bring up several sample applications that demonstrate the basics of LabVIEW <> Excel communication via ActiveX.
 
As Joe mentioned, accessing your Excel file may be easier if you have access to the Report Generation Toolkit. Basically, this toolkit adds Excel communication VIs to your LabVIEW palette to abstract away the details of ActiveX programming.
 
I hope this helps!
 
Casey Weltzin
Applications Engineer
National Instruments
 
0 Kudos
Message 8 of 9
(4,559 Views)


@mikeporter wrote:
One thing to bear in mind is that the communications/control mechanism involved is ActiveX. The problem is that MS has exhibited a tendency to muck around with the interface to Excel when doing an upgrade. Worse, the mucking around has in the past resulted in changes that were guaranteed to break existing applications calling Excel.

Just something to remember for possible future reference.

Mike...



So, true!

Some of our computers had Excel 2000 and some had Excel 2003.
Simple code for opening Excel file using ActiveX of Excel 2000 would not work for Excel 2003.


0 Kudos
Message 9 of 9
(4,547 Views)