LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Curve Fitting Polynomial Coefficients

Solved!
Go to solution

I am using an express VI to determine the best fit curve, and using a second order polynomial.

For the coefficient output of the VI, I am only getting 1 number, shouldn't I be getting 3?

Here is a shot of my settings.

Any help would be apprciated.

 

VI.pngparameters.png

0 Kudos
Message 1 of 4
(4,212 Views)
Solution
Accepted by Ben

You've stumbled on a problem experienced by anyone new to Express VI's and the blue dynamic data type wire.  That wire can contain any type of data, and will connect to just about anything, but doesn't give any indication as to what the underlying data actually is.  It is probably an array of numbers carried in that blue wire, but when it magically connects to a scalar indicator, you get the first number and the other elements get lost.

 

Try deleting the scalar indicator and placing an array of numerics as an indicator and run again.

0 Kudos
Message 2 of 4
(4,205 Views)

Thanks! That did it.

I just had to convert from dynamic data type to an array and all worked fine.

 

VI.png

0 Kudos
Message 3 of 4
(4,195 Views)

Then please mark my message as the solution to your question and not your own message.

 

I'm glad it is working for you now.

0 Kudos
Message 4 of 4
(4,191 Views)