LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read from spreadsheet to array of strings

Solved!
Go to solution

Hi

 

I need help to build a 1D(string) array from a MS Excel file. I've tried using read from spreaaadsheet/ read from Meaurement file. I'm unable to do this. The excel file contains alpha-numeric data. please suggest with some example vis.

 

input would be the excel file path

output would be a 1D array of strings

 

Thank you 

0 Kudos
Message 1 of 8
(3,893 Views)
Solution
Accepted by Mayur_VIenthusiast

Is it necessary to be an Excel file or you are using Excel to open the file?. If it has to be Excel then you may have to use the Active X (Example you can find in this board), otherwise just save it as csv file and use the Read from spreadsheet vi with "," as delimiter.

-----

The best solution is the one you find it by yourself
Message 2 of 8
(3,885 Views)

hi i've updated the program. i'm getting an output but, the output array comes out as comma delimited elements. how do i seperate them??

 

 

Download All
0 Kudos
Message 3 of 8
(3,861 Views)

For reading excel

0 Kudos
Message 4 of 8
(3,852 Views)

muks, this program doesnt work for strings

0 Kudos
Message 5 of 8
(3,835 Views)

@mayurvnktsh wrote:

muks, this program doesnt work for strings


How do you say it doesn't work?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 8
(3,833 Views)

@mayurvnktsh wrote:

hi i've updated the program. i'm getting an output but, the output array comes out as comma delimited elements. how do i seperate them??

 

 


You must give the delimiter as "," (comma) while using the Read from spreadsheet vi to read the file.

-----

The best solution is the one you find it by yourself
Message 7 of 8
(3,832 Views)

Thank you

 

I'm posting the completed VI for others reference

 

 

0 Kudos
Message 8 of 8
(3,812 Views)