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: 

Trapezoidal fit in LabVIEW

Hi,

 

I want to select a trapezoidal curve fit for my set of data. The data points are showed in the picture below.

 

Is there any way to get a trapezoidal best fitting curve in LabVIEW? And is there a way to calculate the area under this trapezoidal best fitting curve?

 

Thanks in advance,

 

Dries

 

 

0 Kudos
Message 1 of 2
(2,364 Views)

You can use "nonlinear curve fit". Follow the help and create a VI model with a few parameters depending on symmetries (amplitude, offset (if any); four key x-positions (or less if the sides are mirror symmetric)). Once you have the parameters, calculating the area is simple geometry, right?

 

You can find more detailed tips e.g. here.

0 Kudos
Message 2 of 2
(2,343 Views)