LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Levenberg-Marquardt fitting for different equations

Hi!

I'm working on a project, in which I have to fit different curves for different data, by using the same L-M curve fitting method. As the main VI of the project starts, the user has to choose one method for evaluating measurement data. After choosing one of the methods, the subVI dedicated to that method starts to run. Somewhere in the subVI a L-M curve fit is going to happen, with the model, the initial coefficients, the condition of termination all being defined inside the current subVI. After the subVI has been executed, the program returns to the main VI, where the user can choose another method of evaluation. If the user chooses an evaluation method which is different from the one being chosen for the first time, an error occurs at the L-M fitting, stating

"Error -23001 occurred at NI_Gmath.lvlib:LM formula string function.vi

Possible reason(s):
Analysis:  Syntax error of parser."

The only thing I tried was to set VI Properties/Execution to Reentrant execution at the Levenberg-Marquardt VI. I hoped that if I prevent LabVIEW from storing the model and initial coefficients, I can fix my problem, but it didn't work.

Does anybody have any idea about this?

Any help would be appreciated.

 

Regards,

Peter

0 Kudos
Message 1 of 1
(2,248 Views)