Hello,
as described above I'm trying to fit some measurements with a lorentzian curve. Currently I'm using the Nonlinear Curve Fit Vi. I will attach everything that is needed, since at the moment I'm just playing around.
My Problem is that the amplitudes are in the range of 1E-12 to 1E-9.
Now I found this:
"What is the Y-range of your data? if it is very small, it prematurely thinks it is converged even if it is not. In this case, you MUST wire the stdev input with an array of equal size as your data, initialized with value appropriate for your data."
I guess my Y-range is very small, but I don't get the rest of the quote. Since the Vi doesn't have a stdev input?
I swapped the LavMar with the bounded LavMar and switched it to TRDL. It actually generates a good fit until you put the offset to 30 or 0.5. So neither is really giving me what I would like to have.
I have attached every needed VI.
"Messung mit Fit.vi" is the one that you need to start. I know the code doesn't look pretty. As you can see it generates values for a lorentzian curve, with hardcoded values.
"Ansprechbarer Lorentz-Fit.vi" is the Vi where my LavMar is implemented.
"Lorentzfunktion.vi" is my Model for the lorentzian function.
The last VI isn't important, but it's needed since I use it.
Greetings