LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph interpolation

Solved!
Go to solution

Hello all,

 

I am new to Labview. Probably, this is simple question, but I am really stuck on it. I have a XY graph (temp Vs resistance for thermistor; the curve looks like decay fucntion), for each unit degree there is corresponding Resistance but I want to get corresponding resistace for some decimal temp(like 10.5 or 18.1 C) using some kind of interpolation. Any kind of help here. Thanks in advance.

0 Kudos
Message 1 of 9
(5,436 Views)

You did not include the datafile.

0 Kudos
Message 2 of 9
(5,434 Views)
Solution
Accepted by topic author akc

Try this. (assuming you want linear interpolation).

 

 

Message 3 of 9
(5,429 Views)

Thanks for reply.

Here is the data file. Sorry, I couldn't upload the CVS(comma delimited file).

0 Kudos
Message 4 of 9
(5,426 Views)

Since your T values are equally spaced and coincide with the array index, you can simplify significantly.

 

 

0 Kudos
Message 5 of 9
(5,406 Views)

Yap thanks for the advice and solution. One more question to bother you. sorry. Now I have to interpoate Resistance vs Temp i.e for a give resistance what is the tempeature. In this case the resistance is not in equal interval. How should I deal with this problem? 

Again thanks

0 Kudos
Message 6 of 9
(5,401 Views)

And yap I tried by switch the columns from your previous VI and seems like it doesnot work if x-is resistance so as to get y-value (i.e temp). Any suggestions!!!! Thanks.

0 Kudos
Message 7 of 9
(5,397 Views)

You are lucky that the mapping is unique. You can use "threshold array" in the same way, but since you data is decreasing, negate the array and the search value to get the correct result. Check the online help.

0 Kudos
Message 8 of 9
(5,396 Views)

Thank you for your help. Really appreciated!!

0 Kudos
Message 9 of 9
(5,394 Views)