The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 NLFIT output multiple curves
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JulienZ

France
1 Posts

Posted - 03/06/2013 :  05:08:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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,

greg

USA
1378 Posts

Posted - 03/29/2013 :  10:20:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000