Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Linear Interpolation (FPGA Module)

LabVIEW FPGA Module 8.2 Help
August 2006

NI Part Number:
371599B-01

»View Product Info

Performs linear interpolation to approximate a function evaluation at an arbitrary location in an interval between two known points. Details  

y0 is the value of the function at the interval endpoint corresponding to x (fractional) equals zero.
y1 is the value of the function at the interval endpoint corresponding to x (fractional) equals one. y0 to y1 forms an interval over which to interpolate.
x (fractional) specifies the evaluation point within the interval y0 <= y < y1). x (fractional) is an unsigned integer representing a fractional number in the range 0 <= x (fractional) < 1.
y is the interpolated function evaluation.

y = (y1y0)x + y0

where x is the fractional value resulting from scaling x (fractional) by 2–16.

Linear Interpolation Details

The result of the multiplication by x (fractional) is a 32-bit number. The VI truncates the lower 16 bits to return y.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit