05-12-2009 12:09 AM
Hi
I currently have an Excel file with two columns and 93 rows containing only numbers. I would like to perform a loop in Labview 6.1 that reads row1's 2 values and feed them into a command string for use with a GPIB cable. This would repeat another 92 times for the other rows. I have a working establishment with my GPIB device inside a loop but have had no success with the excel reading. All I really need is:
1) A vi file that opens an excel file once
2) Once opened, it extracts both the values situated in A1 and B1 whilst in a loop structure.
3) These values are then sent into a command string with two separate commands
4) The row is incremented if <93
5) The loop repeats until row 93 is reached
6) The excel file closes
7) Program finishes
I hope this is fairly clear and any help is much appreciated!
05-12-2009 01:43 AM
05-12-2009 01:48 AM
05-15-2009 01:38 AM
Thanks for the info,
I've reached a bit of a roadblock in the attached file. I was using it to access a simple excel file with 2 columns and the data in the table comes back with 10 columns with the data in the table mismatching the data in my file. The range was set to cell 1 being A1:A93 and cell two to B2:B93. The property node that has the application property has a property entitled visible which, when true, shows the file being opened and closed so I am certain that the correct file is being read. Can you please give me some assistance?
05-19-2009 06:32 PM
Hi,
I've been out of office for a few days! Any help will be appreciated
05-19-2009 08:07 PM
Hi
From the two attached files it can be seen that the read data is incongruent with the excel file even though the vi does indeed open test.xls. I don't know why this is such a problem as it is a very simple excel file. I have little knowledge of LV so I really do need assistance. I am working with LabVIEW 6.1 so please post any responses with this version in mind.
Thanks
05-19-2009 10:39 PM
05-20-2009 01:41 AM
Thanks Smercurio...
I have tried what you suggested but same values are popping up in my table as previously encountered.
05-20-2009 09:01 AM
I indicated that you should be wiring an empty array, not one that already has numbers in it.
Please upload your latest VI.
05-22-2009 12:06 AM
Here is the file... Thanks