ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Excel Content with Labview

Hi,
 
I am wondeirng if it is possible to read the data in excel cells and spit them out so that labview I can use those numbers or text with instruments. For example I write 2000 in a cell I have labview read the entire excel file and it sees the 2000 and it spits it out. On the other than there might 5 different numbers in different cells is there anyway to get labview to read the excel file and place the content of the cells in a labview spread sheet?
 
0 Kudos
Message 1 of 9
(3,735 Views)
Hi MrSafe,
you wrote in the wrong section. You can use ActiveX functions to read the data from Excel and store your data as what you want.

Mike
0 Kudos
Message 2 of 9
(3,734 Views)

Hi Mike,

 

Thanks for the reply could you point me in the right direction I have a link to a thread  but it doesn't explain how to use activex or even how to get started. I am very new to labview if you could help point me in the direction ti would be great thank you.

0 Kudos
Message 3 of 9
(3,731 Views)

Hi MrSafe,

see this link for an example: http://zone.ni.com/devzone/cda/epd/p/id/4915

Mike

0 Kudos
Message 4 of 9
(3,712 Views)
i downloaded the example and the required software except when I try to load the example it says .cbx not found?
0 Kudos
Message 5 of 9
(3,708 Views)
Hi MrSafe,
try this example.
Mike
0 Kudos
Message 6 of 9
(3,706 Views)
Thanks that works however maybe it is my lack of experiance with labview but this file doesn't prompt you for a file I take it I have to insert a file path into the vi?
0 Kudos
Message 7 of 9
(3,700 Views)
Hi MrSafe,
yes that´s right, it creates a new workbook. Attached is the vi to open an existing file.

Mike
0 Kudos
Message 8 of 9
(3,691 Views)
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 9 of 9
(3,620 Views)