Example Code

3D Polynomial Fit and Interpolation in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This code allows the user to do a Polynomial Fit with three dimensional data. Then using the calculated Polynomial Coefficients and two known parameters, it Interpolates the third unknown parameter.

 

Description

The Main VI implements a State Machine that is handle by the Cluster.

Click the Calculate Coefficients button to calculate the Polynomial Coefficients based on the 3D Input Data Arrays (X,Y and Z) and the desired order.

Click the Interpolate button to find an unknown Z based on a known X and Y, as well as the calculated Polynomial Coefficients.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run VI
  2. Click the Calculate Coefficients button to calculate the polynomial coefficients based on the 3D Input Data Arrays (X,Y and Z)
    and the desired order
  3. Click the Interpolate button to find an unknown z based on a known x and y, as well as the calculated Polynomial Coefficients

Additional Information or References

2080.png

**This document has been updated to meet the current required format for the NI Code Exchange.** 

Product Support Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Aui69
Member
Member
on

Exactly what i needed, thanks!