07-11-2006 01:08 PM
Solved! Go to Solution.
07-11-2006 01:16 PM
07-11-2006 01:39 PM
Hi Lynn,
Thanks for your reply. Yes, linear interpolation is acceptable for locations that are outside the surface (input1) boundaries. I like your suggestion about forming a plane using the 3 points nearest to point xy (inputs 2&3). Then I could just extrapolate z at xy from the equation for that plane. However, as I was saying, I'd rather not have to write this code myself since it will take time and my boss wanted this done a month ago. If anyone has code for this, I'd really appreciate you post a link to it on this forum.
Thanks!
Richard
07-11-2006 04:22 PM
07-11-2006 04:27 PM
Maybe you could download a demo of this program.
07-11-2006 07:04 PM
07-12-2006
09:51 AM
- last edited on
11-06-2025
02:56 PM
by
Content Cleaner
Which version of LabVIEW are you using? LabVIEW 8 has built in functionality for interpolating over a 2D surface. The 2D interpolation methods include bilinear, nearest, bicubic, and bicubic spline. You might check here to see some of the new features available.
07-12-2006 01:13 PM
Hi Jared,
I'm using LabVIEW 7.1.1 here at work. I have version 8 at home that I am evaluating. I'll take a look at those 2D interpolation vi's in version 8 when I get home from work today. If they'll work for my application, I see if it is possible to rewrite them for LabVIEW 7.1.1. If it is possible, I might just do that depending on how much work is involved.
Also, after thinking about Lynn's suggestion, I realized that it won't work. If the 3 closest points to xy form a straight line and not a plane, then z_estimate will be wrong. Dealing with this special case gracefully would really complicate the code I think.
Thanks,
Richard
07-14-2006 10:09 PM
05-05-2008
12:41 PM
- last edited on
11-06-2025
02:56 PM
by
Content Cleaner
I finally found exactly what I needed in this thread!
https://forums.ni.com/t5/LabVIEW/Need-help-with-array/m-p/237887
The code that does this is called: using3dpolyfitandevaluation.llb
I think something like this should be built into LV because it is extremely useful when working with scattered 3D data.
I've attached the code to this thread in case anyone wants it. I've seen multiple versions of this code on these forums, but this unmodified version works. Some of the other versions posted to these forums don't.
Cheers,
Richard C Ballantyne