07-25-2003 05:08 AM
07-25-2003 11:36 AM
06-29-2006
03:13 PM
- last edited on
08-22-2026
01:29 PM
by
Content Cleaner
I ran across an NI DevLib Example which shows an example of how to use 1D Spline in two dimensions:
2D Array Interpolation
(related download - 2D_interpolation_demo.zip [links removed; downloads no longer available] )
In order to better understand what it does, I added many comments to that example, and then extended it.
Their example produces a uniformly-spaced output array, and I wanted to interpolate at an arbitrarily located point. Also, I figured out how to allow one of the independent variables, [[Xc]], to be specified as a (unevenly sampled / jittery) 2D-matrix instead of as a 1D-vector. I haven't yet figured out how to generalize the second independent variable [Xr] into a (jittery) matrix too. I'll probably have to use an approach similar to bilinearDEMO but suggestions would be welcomed! I have LabVIEW 7.0, so I can't try the new surface-fitting stuff in 8.0.
Note my commented version of NI's "2Dinterpolation.vi" is included as a subVI to the attached demo. I hope this is helpful. CHEERS!
06-29-2006 04:03 PM
06-30-2006 11:10 AM - edited 06-30-2006 11:10 AM
Message Edited by citizenDAK on 06-30-2006 11:18 AM
06-30-2006
12:53 PM
- last edited on
02-03-2025
02:21 PM
by
Content Cleaner
FYI everyone, LabVIEW 8.0 introduced built-in 2D interpolation along with LOADS of other mathematical goodies. It's got 2D bicubic, bicubic spline, bilinear, and nearest interpolation methods. We have Hermite, polynomial, rational, Fourier Interpolation. Did I mention improved Optimization, LevMar and more? The list goes on and on... This is miles beyond our earlier offerings and might be worth a look!
Message Edited by Jarrod S. on 06-30-2006 12:53 PM