Still stuck with your interpolation problem ?
🙂You have a number of options.
Easy :
Do a linear interpolation, using dedicated LV vi's.
- separate your x and y values as two 1D-arrays,
- search the x array to find the fractionnal index number (caution : the values must be ordered !)
- interpolate the y array using the fractionnal index number.
More complicated, but more accurate : same approach, but use a polynomial, instead of a straight line
- use a third order polynomial (4 parms) to fit a curve to the y array, using 6 values, 3 on each side of the interpolated x (careful with edges), then compute the polynomial y value, using the calculated parms.
You could use directly the Polynomial Interpolation vi (Not in Base Package), but
I would not recommand it, since it uses a n-1 order polynomial to fit the data, which is a poor method when the number of points n is large.
Attached is an example of solution 1.
Ask if you need help for solution 2.
CC
Chilly Charly (aka CC)