I created a user function that is working as expected, but I would like it to paste the equation when I "Paste Parameters to Plot". The equation is displayed for the built in functions, so I am assumig that I am just missing something. I wold also like to preview the equation and the line when deciding the function, but am not sure on how to do that.
quote:but the parameter box on the plot does not contain the equation.
That's only automatic for built in equations. Of course you can create your own output for plot label or result log and run from the After Fitting scripts.
quote:I wold also like to preview the equation and the line when deciding the function
If your fitting function is called MyFunction create a WMF file to be shown in Equation pane and name it MyFunction.wmf. Create another WMF file to be shown in Sample Curve pane and name it MyFunction.cuv. Copy both files to the FitFunc subfolder on your User path or the Program path along with MyFunction.fdf. Equation and Sample Curve figures should show up automatically in the Advanced Fitter the next time you open it.
I looked through the help file and the forum, but couldn't find basic info on how to make scripts for this purpose. Is there a knowledge base or other information on how to do that?
I should be able to figure out the WMF file. Thanks
quote:I looked through the help file and the forum, but couldn't find basic info on how to make scripts for this purpose. Is there a knowledge base or other information on how to do that?
...Those examples only print to the result log. The following LabTalk script also creates a graph label with the information in the first example. If your FDF file is typical then the script will be able to read the function directly from file.