02-01-2010 03:19 PM
Hello friends, I have a.. simple problem, I´m trying to solve without sucess..At first I don´t know how I can start this..
Well, I need to create a VI and it needs to get the value of 2 PT100 resistors, and search on the following table the right value of the Relative Humidity.
Some considerations.
1x PT100 named "dry bulb"
1x PT100 named "wet bulb"
ts ->Temp. from one of the PT100 resistor "Temp. Dry bulb resistor in ºC"
DT -> Difference of temperature between dry bulb and wet bulb in ºC
I know how to read the resistance of the two PT100. but I don´t Know how I can make this code, I already tried to create 2 arrays ( ts and DT) and search the nearest value from the read value. and before this, will get the indexes values XY and search on that table the right value of humidity.
*I had thought of using structures "for loop" but I could not put into practice;
*2 arrays (one "ts" and another for "DT").
* I have another table that I will use for this project, I found this table in google and is quite similar to that use.
Can anyone help me?It´s urgent.
Thanks A lot
Solved! Go to Solution.
02-01-2010 04:08 PM - edited 02-01-2010 04:16 PM
Where are you stuck?
It sounds like you have a good approach.
Once you have the two indices, it is a simple matter of indexing that value out of the 2-D array. Post the VI that you have done so far. A For loop should not be necessary at all.
Something like this.
02-01-2010 04:24 PM - edited 02-01-2010 04:25 PM
Have a look at Ravens solution above. However, if you already have fractional indices, it might be more reasonable to read out the 2D array using fractional indices too.
You could do e.g. bilinear interpolation. Have a look at my old post here and the link in it)
02-01-2010 04:39 PM
02-01-2010 04:42 PM
02-02-2010 12:01 PM
Thank you friends. the first solution might be the simplest. So Today I´ll try doing that.
Tomorrow I return here and post the result.
Thankyou very much my friends!
02-05-2010 09:33 AM
Hello guys, How are you doing?
The solution posted by "Ravens" was fine, I am attaching the file with the solution implemented.
Thank you very much!
02-05-2010 10:41 AM