LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i find area under a closed curve

I am having set of Y-values w.r.t X-values.When i am using numerical integration.vi to measure area, it is showing wrong answer.Is there any other vi to find the area under a closed curve.
0 Kudos
Message 1 of 2
(2,957 Views)
Is the dt constant between your values? The numerical integration.vi needs them to be...

What's the correct answer depends on how you are to interpolate between the points. The numerical integration.vi allows you to select between a number of approaches (Simpson's rule, trapezoidal etc..). It does not allow integrating the values as if it were a histogram...If that is what you want to do then all you need to do is to add the values and then multiply the result by dt...

When you say that the answer is incorrect, could you give an example array, dt and correct result?

If the curve is supposed to be a special function you could use regression analysis to find the formula of the curve and then integrate that...
0 Kudos
Message 2 of 2
(2,957 Views)