Jump to content

How to write a custom (exponential rise) fitting function?


Recommended Posts

Hi,

I have a set of data which is in a shape of exponential rise function. I cannot find any fitting VI can fit this data set so I would like to build one.

I know that my data set is Y = A - B*exp(-C*X). But I don't know how should I start to make my VI can find the fit automatically.

I highly appreciate your time on reading and answering my questions.

Best regards,

Thang

Link to comment

Are using the "Base Package"?

This particular implementation of Exponential fit was known to have problems when data falls below 0. Use http://zone.ni.com/reference/en-XX/help/lv/71/gmath/Levenberg_Marquardt/ instead.

I am not a great fan of express VIs, but potentially you can use Curve Fitting.vi express VI. Both require something more then base package.

An overkill for such a simple problem, but you can also use

Link to comment

I found the nonlinear curve fitting VI and play with it, but by some reason it doesn't work. I attach it here so you may can try it.

Select TestFitData.txt as source

Can't you just move the data to domain where expotential fitting works? Like this:

post-7450-0-11601400-1300808306_thumb.pn

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.