LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Importing rows and columns from Excel to Cluster and Array in Labview

An excel table consist of  4 columns and variable number of rows, the first column is the position number and the other 3 columns are series of coordinates (X,Y,Z). I would like to import the excel table into Labview such that each row in the table will form a cluster which consist of the position number and the coordinates of each position and each formed cluster should converted to a 1D-Array(double).

 

I would be glad if someone can tell me the best way to go about this or better still show me some examples because i am very new in Labview.

 

Thanks

 

Omoba

 

0 Kudos
Message 1 of 10
(5,470 Views)

The easy way would be to save the excel file as csv (colon seperated values) and load it into ascii via load spreadsheet file (use ; as delimiter).

The more advanced way is to interface excel via ActiveX. Use the example finder and search for ActiveX to find some examples that interface excel (they should be shipped with LabVIEW).

 

Post back if you have more detailed questions. 

 

Felix 

0 Kudos
Message 2 of 10
(5,456 Views)
Do you have the MS Office Report Generation Toolkit or are you working with the core set of LabVIEW VIs?
0 Kudos
Message 3 of 10
(5,442 Views)
I am working with the core set of Labview VI's
0 Kudos
Message 4 of 10
(5,436 Views)

You should look through this fourm. It has all kinds of help for Excel.

 

http://forums.ni.com/ni/board/message?board.id=BreakPoint&thread.id=2391

Tim
GHSP
Message 5 of 10
(5,426 Views)

Hey Omoba,

 

is your Problem allready solved or do you need additional help ?

 

regards, Marcus

0 Kudos
Message 6 of 10
(5,363 Views)
Another thing you can try is to save your excel file as a txt dokument. Than you can simply read the data witch "read spreadsheet.vi"
0 Kudos
Message 7 of 10
(5,356 Views)

Thanks Marcus,

 

but my probelm is not just reading from worksheet or from text file, this gives me a 2D-array, but what i need is to have every row formed to a cluster and the series of clusters should be converted to a 1D- array.

0 Kudos
Message 8 of 10
(5,344 Views)
Like this ?
0 Kudos
Message 9 of 10
(5,326 Views)

Hello Omoba,

 

i just want to check on you Problem.. did the example solve your problem?

0 Kudos
Message 10 of 10
(5,288 Views)