LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NonLinearFit handle max iterations exceed error

Hello, I'm using the function NonLinearFitWithMaxIters, when reaches the maximum number of iterations without reaching a solution, it returns an error. And a error popup that stops execution. How can I handle this error to avoid the popup and not stop the execution?

 

 

Thanks in advance!!

0 Kudos
Message 1 of 2
(3,030 Views)

Sorry! I didn't know that a function to avoid popups exists!!

 

int oldValue;
oldValue = SetBreakOnLibraryErrors (0);
/* Function calls that may legitimately return errors. */
SetBreakOnLibraryErrors (oldValue);

 

 

0 Kudos
Message 2 of 2
(3,023 Views)