08-16-2023 09:53 AM
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.
May I ask for some help regarding it ?
Thx !
08-16-2023 10:26 AM - edited 08-16-2023 10:39 AM
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!)
08-16-2023 10:35 AM
There are two intercepts (A and B).
What do you really want?
What are the units for the x axis (dx) and what are the desired units for the integral?