LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excel and labview

Hii all


I am having Labview 8.2.. And i need to convert the excel file containing 2 or more columns into waveform in labview.
I need the block diagram specifying the input to read from spreadsheet.vi .

Thank you

0 Kudos
Message 1 of 10
(3,666 Views)

If the file is truly an Excel datafile, check the ActiveX examples that ship with LV. They show how to interface to Excel. If the file is fundamentally a text file that Excel is just opening, the standard file IO routines will work for opening it.

 

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 2 of 10
(3,660 Views)

Hii

Is there any other way rather than ActiveX.

Thanks

0 Kudos
Message 3 of 10
(3,647 Views)

No, you can also use the ADO database interface to sometimes read Excel files, but that is also ActiveX.

 

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 10
(3,644 Views)

hii mike

Can you provide me an complete example of doing that with activeX.

Thank

0 Kudos
Message 5 of 10
(3,634 Views)

Check the examples that ship with LV. I don't have acces to V8 anymore.

 

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 6 of 10
(3,630 Views)

@mdjaved wrote:

Hii

Is there any other way rather than ActiveX.

Thanks


Sure,  Just write yourself a parser for the the Microsoft Office XML format read the file on disk and viola!  Or, you can use a automation reference to an application that supports the file format natively such as an Active X reference to Excel


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 10
(3,628 Views)
There are examples that come with the Report Generation Toolkit. And, if you search the forum for Excel, you'll find hundreds, if not thousands of threads and many have example code. It's do much easier to save your excel file as a csv file, though.
0 Kudos
Message 8 of 10
(3,625 Views)

@JÞB wrote:

@mdjaved wrote:

Hii

Is there any other way rather than ActiveX.

Thanks


Sure,  Just write yourself a parser for the the Microsoft Office XML format read the file on disk and viola!  


If you do go down that crazy rabbit hole please do report your results here.  I'm not sure I would use it but I would find it facinating. 

0 Kudos
Message 9 of 10
(3,616 Views)

Interestingly enough I did find a tool that does command line XLSX to CSV conversions.

 

http://www.softinterface.com/Convert-XLS/Convert-XLS.htm

 

OpenOffice also has some kind of command line utility that could do something similar.

Message 10 of 10
(3,600 Views)