Example Code

Using the Interpolate 1D Array Function With an Array of Clusters Using 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

Download All

Overview

This example shows how to use the Interpolate 1D Array Function by building a 1D array of x,y points. 

 

Description

This example shows how to use the Interpolate 1D Array Function by building a 1D array of x,y points. From here, the user can specify what value of x they would like to recieve corresponding y value for. The Interpolate 1D Array function will output the interpolated value.

 

Requirements

  • LabVIEW 2012(or compatible)


Steps to Implement or Execute Code

  1. Run the vi.
  2. Input the array

 

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

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

Comments
altenbach
Knight of NI Knight of NI
Knight of NI
on
  • You need to initialize the shift register, else the array will grow without bounds when run repetitively.
  • There is actually no need to use a shift register or display the table with every iteration of the loop. All that needs to be inside the loop is the bundle, autoindexing at the right loop boundary.
  • Instead of the loop, you can also use "index and bundle cluster array" (see here).