LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem reading excel file!

I have to read some data from a excel file which contains stribngs and numbers. But I am not able to read. I tried using read characters from file.vi and read from spreadsheet file.vi but it doesn't work. Can anyone please help me.
0 Kudos
Message 1 of 4
(3,353 Views)
Try to open the file in excel, select all the data by using cntrl+A, then copying by cntrl+c and then paste all in a text document(open the microsoft notepad).
in Labview - use "open spreadsheet" to open the txt file
0 Kudos
Message 2 of 4
(3,353 Views)
Hi,
you can't read directly an Excel file using the LV file functions like if it was a text-based file.
You have to use Excel activeX methods and property; doing a search on the Dev.Exchange you will find several examples to import excel data from a spreadsheet to LV.
Here are a couple of links:
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F15456A4E034080020E74861&p_node=DZ53003&p_submitted=N&p_rank=&p_answer=&p_source=External

http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F15456A4E034080020E74861&p_node=DZ53003&p_submitted=N&p_rank=&p_answer=&p_source=External

Good luck,
Alberto
0 Kudos
Message 3 of 4
(3,353 Views)
If you want to use Read from Spreadsheet on an Excel file, you can save it as a tab or comma separated text file. Otherwise, use ActiveX like Alberto suggests.
0 Kudos
Message 4 of 4
(3,353 Views)