LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interpolation between datas

Solved!
Go to solution

Hello all. I have a table and i am using this table for read data.

My table like this:

a          b          c          e

0         10        5          20

100     200    -5         20

....

All datas are linear. I get (a) values for reference

 

how can i find b-c-d values when a=13?

Thank you

 

0 Kudos
Message 1 of 4
(2,791 Views)
Solution
Accepted by topic author keremgeliz

Hi kerem,

 

use the Interpolate1DArray function…

 

Example:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,781 Views)

If it is linear, you have to calculate the parameters for your linear equation. In case you don't know that equation (i hope you do, otherwise, pls learn the basic stuff before asking in some forums!): y = m*x + t

 

In your example, column a is x. The other columns represent the corresponding y.

So in case for column b:

10 = m*0 + t

200 = m*100 + t

 

Now solve both equations in order to get m and t for column b. Next step is to use m and t to compute your y for x = 13.

 

Easy enough.....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 3 of 4
(2,780 Views)

Use Threshold 1D Array on your A column.  That will give you a fractional index that you can use with Interpolate 1D Array on your other columns.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 4
(2,773 Views)