06-17-2013 04:13 PM
Hello,
How would you go about estimating a first order decay time constant? I have a system that loses heat very slowly and I wish to estimate the time constant from the first part of the data to allow for more frequent tests (I know what it will end up decaying to).
I know that I can make a good estimate based on the initial slope of the graph but I don't know how to implement this in LabVIEW. Does anyone know how I can make the VI calculate a tangent line to a graph and find where it intersects another line?
Thanks
Solved! Go to Solution.
06-18-2013 01:14 AM
How about using the
Owning Palette: Fitting VIs
Requires: Full Development System
Returns the exponential fit of a data set (X, Y) using the Least Square, Least Absolute Residual, or Bisquare method.
This VI uses the iterative general Least Square method and the Levenberg-Marquardt method to fit data to an exponential curve of the general form described by the following equation:
f = aebx + c
where x is the input sequence X, a is amplitude, b is damping, and c is offset. This VI finds the values of a, b, and c that best fit the observations (X, Y).
06-18-2013 09:57 AM
Thank you! I had tried this before but I had an exponential decay that didn't die out to zero. This was causing weird results with the damping indicator. I solved it by subtracting the vertical offset from all of my values so it died out to zero and now it correctly gets the time constant.
06-18-2013 03:56 PM
guess what the c is for 😉
06-18-2013 07:09 PM