LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I modify the Levenberg Marquardt VI to fit data to a model described by another VI?

Can I modify the Levenberg Marquardt VI to fit data to a model described by another VI?
0 Kudos
Message 1 of 4
(2,913 Views)
There is an input cluster called model description. The help description for it says:

"model description is a cluster containing the fitting equation. model is a string describing the model equation.
Parameters is an array of strings of the unknown parameters.
x is a string describing the independent variable. "

The cluster is wired to a terminal so yes.
0 Kudos
Message 2 of 4
(2,913 Views)
thank you for the answer; But what I meant was that instead of using an equation as an input, an other vi can act as a model.
0 Kudos
Message 3 of 4
(2,913 Views)
DHG,
There are actually two versions of Lev-Mar fitting VIs in LabVIEW. The one that is called "Nonlinear Lev-Mar Fit.vi" uses a VI in which the function is coded in a formula node rather than a formula string as input. In this VI you could place your function VI instead I suppose. I attaced a picture that shows how this, the older version of the Lev-Mar vi, is using the function. I hope this helps/Mikael
0 Kudos
Message 4 of 4
(2,913 Views)