01-01-2010 06:46 AM
Hello everybody,
i need to fit my data to sine decay function: V(t)=V0+V1*exp(-t0*t)*sin(w*t-phi)
i'm using Labciew 8
does anyone have an appropriate VI?
thanks,
Etay
01-04-2010 03:47 PM
01-04-2010 04:28 PM
Hey George,
thanks for the reply.
if i understand you correcly i should use the mathscript for the fitting but in this case is need some kind of algorithem to implement in the mathscript.
this algorithem should take some initial values and while the mathscript runs in a while loop those parameters have to change in some manner to give he best fit.
but how to change them simultaneously?
thanks,
Etay
01-04-2010 06:31 PM
I would personally use the nonlinear fit VI with the fit function implemented as a subVI. Once you have done it once and figured out the references and format for the f'(x,a) it is pretty easy. See the example (I hope the 9.0 -> 8.0 save chain worked). A majority of the BD is spent generating some fake data so I have something to fit.
01-09-2010 03:22 AM
Hello Darin,
Thanks for the Vi's .
I try to use them but no success for now 😞
I read my data from scope so I have analog data so i took the array and connected it to the y input of the Lev-mar vi but how to connect the time stamp i.e. what should i connect to to the x input?
thanks,
etay
01-11-2010 06:19 PM