LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Int interpolation

Hi,

i have some X and Y values in my database (ascii-file) and what i need is to calcute interpolation value for some unknown X.


for example:

My database looks so:
X = 2, 4, 6, 8
Y = 6, 7, 10, 13

and now i need the code for calculating some X value like X = 3 for what i dont have Y-Value in my database.

Thanx a lot
Vedran
0 Kudos
Message 1 of 4
(2,921 Views)
Hi,

Check attached example,

Hope it helps,
Paulo
0 Kudos
Message 2 of 4
(2,919 Views)
Beware of polynomial interpolation. It can generates unexpected results. For instance, here, for X values lower than 2.7, it returns Y values lower than 6. I don't think that this is what is expected. Most often a linear interpolation is sufficient. See the attached vi.
Chilly Charly    (aka CC)
Message 3 of 4
(2,908 Views)
thanx both of you... that is what i needed 😉
0 Kudos
Message 4 of 4
(2,893 Views)