T O P I C R E V I E W |
JulienZ |
Posted - 03/06/2013 : 05:08:38 AM Origin Ver. and Service Release : 8.1SR3 Operating System:Windows XP 64bit
Hi there, I am looking for a way to get several curves output after running a user defined NLFIT function in pretty much the same way that you get each individual peak as well as the fitted curve after a multiple peak fit (of course in my case each "contribution" curve is different so the multiple peak Fit option is out).
I believe I should define a "Script after fitting" to retrieve the parameters determined by the fit (GetFitresultsParameters), calculate each curve of interest, send these to worksheet columns and graph those. While I know some C programming I am not familiar with LabTalk and the examples and the description of functions does not help much. So before I start working on that could someone weight in on wether this is the right approach ? Then I'll start looking for examples for each individual task the script should perform...
Thanks in advance for your input,
|
1 L A T E S T R E P L I E S (Newest First) |
greg |
Posted - 03/29/2013 : 10:20:25 AM Your version does have a Script After Fitting section on the Code tab of NLFit so you are on the right track. The script should start with:
getresults tr:=MyResults iw:=__REPORT$;
which will get the parameters of the fit into the MyResults tree. After that you will probably find these useful: newsheet, wks.AddCol(string) and plotxy as well as a good understanding of Range Notation http://wiki.originlab.com/~originla/ltwiki/index.php?title=LabTalk:Range_Notation |
|
|