07-07-2009 04:05 AM
Hi Michael
Thanks a lot, that did it. The model now finishes properly. I still don't get the same fitting parameters as matlab, but I will scrutinze my model, it may be faulty somewhere.
Best regards,
/Fredrik
07-07-2009 04:29 AM
Hi Fredrik,
What is the result from Matlab? Since LV and Matlab use different implementation, it is possible that they return different result.
You can use mean square error or residue to evaluate the fitting result.
Also I think it is important to double check your model in LV, since your model is really complicated. A quick validation is to pass the Matlab resulting parameters to your model VI, and pass X value in this VI as well, then to see if this VI returns the same f(x, a) as that of Matlab.
Hope this helps.
Regards,
Michael