LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error in nonlinear LM fit

Solved!
Go to solution

@altenbach wrote:

Have a look at the "advance model" here, it shows how each parameter can be selected for fitting or kept constant by using a boolean selector.


Hi

I took your "madness nonlinear project" and change the functions to N gaussians and added a slope. It works great and much faster than formula node!

Thanks a lot. I put it here if some other noob like me needs it !

Regards

 

N

0 Kudos
Message 21 of 22
(410 Views)

Looks pretty good.

 

Two things you should change (see picture):

 

  1. In the caller, you can use conditional tunnels to build the various arrays (this option was not available when the code was first written)
  2. In the model VI, there is no need to initialize arrays for the slope and offset. Using a scalar will do exactly the same.

The rest looks pretty clean from a casual look. 😄

FitIt.png

Message 22 of 22
(399 Views)