From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get points on curve

Hi all,

I have a set of points and am fitting a second degree polynomial in it using General Polynomial fit.vi, Regression Equation String.vi and Eval y=f(x) Optimal Step. vi as given in the example Regression Solver.vi.

Now, my problem is, I want all the points on the curve given the equation of the curve. By all points, I mean with all the pixels, similar to the VI 'GetPointsOnLine' which gives all the points on a line given its endpoints. Please help me.

 

Please see the regression solver example in C:\National Instruments\LabVIEW 2013\examples\Mathematics\Fitting\Regression Solver.vi

 

Thank you

 

0 Kudos
Message 1 of 3
(2,442 Views)

You really need to define your X values.  Once you have those, then you just plug those values into your formula and you should have your Y values.


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
0 Kudos
Message 2 of 3
(2,385 Views)

Crea an x-ramp corresponding to your pixels and use polynomial evaluation to calculate the curve based on the polynomial coefficients.

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