LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Area under curve running from 0 until intercepted by another curve

Hello,

 

I try to compute the area under a curve (the green-yellowish one) running from 0 until intercepted by another curve (the white one), but I am not sure of how I can get define the surface, then integer it. 

 

So far, my vi is very easy, with just the function needed to get some time lapse between two max.

Gb7384_1-1692197609950.png

 

 

May I ask for some help regarding it ?

 

Thx !

Gb7384_0-1692197535164.png

 

0 Kudos
Message 1 of 3
(976 Views)

This seem trivial to solve. As a first step, attach your VI and some data. We cannot work with images.

 

I assume you mean "integrate it", not "integer it". Since you have noise, there will be several intercepts. Do you want to smooth the data first? Approximate it with a polynomial or some other suitable model?

 


@Gb7384 wrote:

So far, my vi is very easy, with just the function needed to get some time lapse between two max.


This does not make sense? What is a "max" here? I can't even see one, but you seem to see two....

 

 

(Are you aware that "index array" is resizable? Even better, use an autoidenxing FOR loop to process all rows the same way and avoid all that duplicate code!)

0 Kudos
Message 2 of 3
(965 Views)

There are two intercepts (A and B).

 

What do you really want?

 

  • negative area from start to A?
  • Area from start to B (some negative and some positive)?
  • Area between A and B?

 

altenbach_0-1692200038795.png

 

 

What are the units for the x axis (dx) and what are the desired units for the integral?

0 Kudos
Message 3 of 3
(955 Views)