LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why doesn't my non-linear curve fit finish?

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

 

0 Kudos
Message 11 of 12
(563 Views)

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

0 Kudos
Message 12 of 12
(559 Views)