LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Interpolation Help Needed

Greetings,
I have a table of two variables, Xi and Yj. These two values are used to give a needed parameter value, W. The table is 42 columns and 86 rows, but not all rows all completely populated (Visualize a large page with a big rectangle looking table like a spreadhseet; the data fills the shape of a diamond). I need to be able to perform an interpolation on the columns and on the rows in order to calulcaute the corresponding Z value from the table. For example, if the Y column headings are 1,2,3,4,5,... and the X row headings are 100,200,300,400,500,..., then if one gives the vlaue of (X,Y) = (275,2.3), I need to find the corresponding Z. How can I do that in LabVIEW? Expecially considering the fact that there is not a corresponding X value for each and every Y value. Thanks
0 Kudos
Message 1 of 2
(5,463 Views)
If you have LabVIEW 8.0, there is a direct tool for 2D interpolation.
 
Else you can make your own. For an example of bilinear interpolation, have a look at my example in the following thread:
 
 
(Just calculate your 2D array indices from x0 and dx of your axes).
 
Message 2 of 2
(5,458 Views)