user defined function

I am trying to fit data with MPF2. I would like to fit with a set of lorentzian functions and one Breit Wigner Fano function (kind of asymetic Lorentzian function). Since I need to add my own function, I've looked carefully the help about that topic. I succeed to compile a procedure similar to PeakFunctions2.ipf as recommended in the help file. MPF4 allows me to chose my new function in the contextual menu, but when I ask to "Do Fit", it returns to me : "Multi Peak Fit Failed - expected fitting function".

Is there some people who already had this problem ? Did they succeed to solve it ? If you already created your own function, I am interested in your procedure ipf file...

Thanks in advance.

The part "expected fitting function" is a message from the FuncFit operation. That means that the Multipeak Fit package is satisfied that you provided a function name, but FuncFit was unable to find a function with that name and with the right format.

Make sure that in the PeakFuncInfo function you have spelled the name of your peak function correctly.

Make sure that your fitting function is in the right format- Multipeak Fit 2 uses all-at-once fitting functions, so the input parameters must be three waves.

If you can't figure it out, send a zipped copy of your procedures to support@wavemetrics.com.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com