LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Nonlinear curve fitting - max iterations exceeded (error -23026)

Solved!
Go to solution

Hello,

 

In my application I'm using the nonlinear curve fit VI (Levenberg-Marquardt) to fit data acquired continuously using a DAQmx task. Often during the setting up of the instrument, the curves are not yet "fittable" and the max iterations defined in the termination parameters is reached.

 

This is OK but the problem is that it generates an error (-23026) that will stop the execution of the VI.

 

How can I ignore this error and continue running the VI until the termination is controlled by the tolerance parameter?

 

Regards,

Bernard

Message 1 of 4
(3,140 Views)
Solution
Accepted by topic author bernaille

Hi Bernard,

 

you need to wire the error output and handle the error programmatically!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,134 Views)

Thanks a lot for your answer.

 

I did it this way and it works:

 

error_handling.PNG

 

Bernard

0 Kudos
Message 3 of 4
(3,125 Views)

Hi bemaille,

 

you could use UnbundleByName to get the error number easily…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(3,122 Views)