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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 NLFIT output multiple curves

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000