# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## exponential fit - revisited.

Hi - I keep thinking I should be getting a lot better fit results on my decaying exponential for both exponential models and all calculation methods possible in the attached VI (modified from LabVIEW example, so all subVIs should be available within LabVIEW).

I don't necessarily want to have to provide initial parameter bounds.

Any thoughts?

Sincerely,

Don

Message 1 of 6
(2,710 Views)

## Re: exponential fit - revisited.

Here is what I obtain using Excel - which is closer to what I would expect.

Message 2 of 6
(2,707 Views)

## Re: exponential fit - revisited.

Hi DonRoth, can you post an screenshot of what are our results in LabVIEW?

Message 3 of 6
(2,686 Views)

## Re: exponential fit - revisited.

Your curve is not a decaying exponential, but something entirely different. What are you trying to get out of all this?

Your data covers an extremely small Y range, thus you need to adjust the termination condition accordingly.

Also the paramters seem to differ bu huge orders of magnitude, making the fit somewhat ill conditioned.

Message 4 of 6
(2,682 Views)
Solution
Accepted by topic author DonRoth

## Re: exponential fit - revisited.

Things come out looking very different if you graph the input (white) and curve fit (red) on an XY plot.  Maybe the X-axis values aren't evenly spaced?

Message 5 of 6
(2,676 Views)

## Re: exponential fit - revisited.

Wart - You nailed it.  I forgot I had unevenly-spaced X data.

The exponential + offset works if I supply a very large number for estimate of a (amplitude in the model a*exp(bt) + c).

Christian - I actually agree with you that exponential model will not provide the best fit.  However, on this project, there is literature in which this model is used for some experimental data and depending on the value of b, some conclusions seem to be able to be drawn.

Sincerely,

Don

Message 6 of 6
(2,663 Views)