02-18-2009 08:02 PM
Hi ander99,
You can talk to any of our Applications Engineer. They will be able to assist you on your problem.
Thank you & Regards
Lee
NI ASEAN AE
02-19-2009 01:37 AM
02-23-2009 01:26 AM
02-23-2009 01:56 AM
02-23-2009 09:59 PM
Hi ander99,
From your explanation in your screenshot, here is how I interpret your question:
1. You have the data from these two Excel spreadsheets in two separate arrays. I will assume that the spreadsheet on the left is called Spreadsheet 1
2. For every element in Column A of _result, you want to find the element with equal value value in Column A of Spreadsheet 1, and extract the corresponding element in Column B of Spreadsheet 1. For example, if you want to find 1000 in Column A of Spreadsheet 1, then you want to extract the value 24.93 from Column B of Spreadsheet 1.
If I am right there, you can use the Index Array VIs to separate your 2D arrays into columns, then use the Search 1D array VI to find the element you are interested in. Then use the index of the found element, and extract the element of that index in the second column. Attached is an example VI I threw together to implement what I'm talking about (and a screenshot of it working). Notice that the found value in the first column is 0, and the corresponding output value is 10 (circled in the screenshot). Naturally you should include some contingencies for dealing with what happens if no value is found (i.e. output of the Search 1D array VI is -1).
I hope this helps.
02-23-2009 11:14 PM
Hi friends
To compare two datasheet I think you copy the data of one sheet and paste it into another sheet.
Now check the the datasheet.
Joseph
02-23-2009 11:19 PM
02-26-2009 11:04 PM
STTLLER wrote:Hi friends
To compare two datasheet I think you copy the data of one sheet and paste it into another sheet.
Now check the the datasheet.
Joseph
Joseph,
How does this statement make any sense?
Copy, paste, compare. Hey, what do you know, the data is identical!![]()
05-04-2009 03:16 AM
Hi ,
i am having quite the same problem. I tried the search_array.vi, which was posted and it works fantastic for my needs.
But how could i manage it to compare a 2D array with two values at a time and then extract elements from different columns?
I imported data from excel , which contains a steamtable, in the first column is the pressure and in the second the temperature etc., now i want to compare this with a temperature and pressure (which i measure) and then extract the third and fourth column which contain the enthalpy and entropy.
Does somebody has an idea?
Greetings
05-04-2009 06:17 AM
Problem solved ![]()