01-04-2006 01:15 PM
01-05-2006 05:36 AM
Hi She,
Try search on 'excel' and 'activex' I have posted a few examples how to read (directly) data from Excel with activex.
Let me know if it doesn't work.
01-05-2006 06:11 AM
01-05-2006 07:28 AM
You have to be careful when using the spreadsheet-files vi's. They are located in the Functions Palette under File IO, you will find "Write To / Read From Spreadsheet File.vi"s.
Here is what the Context Help says about the vi function:
"Reads a specified number of lines or rows from a numeric text file beginning at a specified character offset and converts the data to a 2D, single-precision array of numbers. You optionally can transpose the array. The VI opens the file before reading from it and closes it afterwards. You can use this VI to read a spreadsheet file saved in text format. This VI calls the Spreadsheet String to Array function to convert the data. "
This is quick & easy when the spreadsheet is all the same format. You can set the format to string as well. HOWEVER... you do have to convert the Excel spreadsheet to text before using it.
01-05-2006 08:05 AM
01-11-2006 11:14 AM
01-11-2006 11:31 AM
Hi,
Also with the VI you posted it works OK. I used this VI from LV5-Excel97 till now LV7.1-Excel2002.
You can try to select the your Excel application with right click on the Excel control.
Perhaps some else can try this VI with XP and Excel 2000
02-28-2006 03:24 PM
This file worked for me (Read Excel File.vi). I did get an error when I had it in a loop and called it frequently, it seems to take a while return data (likely to open the file in Excel, extract info and return). Call it once and wait, all works well.
My system: Win2k, Office2003, Labview 7.0.
matt
03-01-2006 08:58 AM
03-01-2006 09:29 AM - edited 03-01-2006 09:29 AM
Yeah, that's what you get if you are talking to Microsoft
Microsoft represent the date value as a integer of days since 30 dec 1899
Can't help it. You need some nice calculation to retrieve a correct date.
Message Edited by K C on 03-01-2006 04:29 PM