LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculation of Polynomial coefficients

Solved!
Go to solution

Hi,

 

I have issues using the polynomial curve fit function. I have an array of velocities (x axis) and an array of voltages (y axis). I want to do a polynomial curve fit and get the coefficients for the calculations of the voltage into velocity. I gain the data during a calibration and need to use it separately afterwards. I wired the Vi as I see correct, when I use the calculation backwards, it calculates wrong values for the velocity.

In equation, I want the coefficient for:

Velocity = A + B*Voltage + C*Voltage^2+... (Fourth order)

 

I hope I could somehow explain the problem. I don't see my mistake here so any help is appreciated. Thanks in advance, the Vi is attached.

 

I am using LV 2014.

0 Kudos
Message 1 of 3
(2,433 Views)
Solution
Accepted by topic author Phil7

You need to read the help. You polynomial evaluation requires the best fit coefficients and [X] and does not need any FOR loop. (You hooked it up to the best fit instead of [x])

 

Try as follows. Works just fine!

 

altenbach_0-1598448202830.png

 

0 Kudos
Message 2 of 3
(2,401 Views)

Hi altenbach,

thanks for you advice.

Helped me find the solution!

Best,

Phil

0 Kudos
Message 3 of 3
(2,392 Views)