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: 

Area enclosed weird values

Solved!
Go to solution

I have a line connecting 1st and last point of a signal and i want to find the area enclosed by all the regions below & above the line.

I have attached a VI with two scenarios where the area value does not seem to be correct based on visual observation.

 

note: the vi contains some Open G functions. which i can translate to native LV if need to.

 

any help will be apreaciated.

 

0 Kudos
Message 1 of 7
(3,490 Views)

Hi,

 

A little confused what youre trying to do, but if im correct youd like to take the area between to functions?  Can you subtract the integration of the lower function from the integration of the larger?



-Matt
0 Kudos
Message 2 of 7
(3,465 Views)
Hey Matt,

Thanks for asking.
I want to find the area of my signal with respect to a straight line, sort of like normalizing my x-axis so that the skewness of fist and last point don't have as much weight.
Most of the time the area seems correct based on the visual of the above and below region size, a couple scenarios seems like a small region above (visually 10% of total) has a grester área than a larger area ~90% of the signal.
0 Kudos
Message 3 of 7
(3,462 Views)
  • You are using Openg toolkit VIs. I don't have those so please include any subVI that does not ship with LabVIEW.
  • Why is the datatype EXT most of the time?
0 Kudos
Message 4 of 7
(3,440 Views)

Here is the vi without the OpenG stuff.

the EXT was due to one of the OpenG functions.

 

thank you in advance altenbach.

0 Kudos
Message 5 of 7
(3,429 Views)
Solution
Accepted by El_Tipo

Maybe something like this?

 

 

Message 6 of 7
(3,421 Views)

clean and to the point as expected.

0 Kudos
Message 7 of 7
(3,416 Views)