05-23-2014 01:32 PM
I am using two cursors on an XY graph to select a subset of the graphed data to fit a power function to. I noticed that the first selection cursor (left-most on the graph) seems to have more control of the amplitude and power of the power fit while the second cursor only seems to limit the "range" of data selected (i.e. does not have much influence over the fit, even though it should). When comparing the exact same data in excel using a power fit, the excel fits a completely different line.
Any help would be much appreciated. (please disregard the local variables in my code, only been at this 3 months) I have attached the VI as well.
Excel fit:
05-23-2014 02:54 PM
Two suggestions. Change the default parameter bounds. Specifically, the offset upper and lower limit are both 0, forcing this parameter to be 0. Change the limits to be Inf for upper limit and -Inf for lower limit. Also, tighten the tolerance of the fit to be 1E-6 or so.
-Jim