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
 Origin Forum
 Append fit parameter values to a file

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
a.abc.b35 Posted - 01/12/2011 : 01:28:38 AM
Hi, I dont know whether it is possible or not. So I shall ask someone experienced and hope this time my question gets answered.
I have a fitting function which has 4 fitting parameters, say, a,b,c,d.
After fitting is done, their values,along with the errors da,db,dc,dd are generated. Also the reduced chai^2 and Adj. R^2. Now I have a lot of plots on which I use this fitting function and get the values from each plot. I want the fitting parameter values (along with corresponding error) and chai^2 and R^2 values to be stored in a file so that I can later call that file to another function where I calculate something with the fit parameters and the errors therein. Or I would like to plot them. So, can anyone tell me, how do I ,after execution of each fit (fitting is done when I click ok from the nonlinear curve fit window after fitting and fit report is generated),store the values in a file ? Or if you can tell me how to take them from the Table (which is generated after fitting), and saving in a file by a Origin C code, it'll be ok.
I am specifically looking for a Origin C code for it. Please help.
Thanks in advance

AB
4   L A T E S T    R E P L I E S    (Newest First)
a.abc.b35 Posted - 01/13/2011 : 1:25:11 PM
Hi Sam, I have found out a way to do this in Origin C by help from Penn in this thread:
http://www.originlab.com/forum/topic.asp?whichpage=1&TOPIC_ID=9150#19715
.....
I have a few more doubts and will post there.
Thanks for your help though. But I would like to learn how to execute LabTalk scripts from Origin C.


AB
a.abc.b35 Posted - 01/13/2011 : 12:19:27 PM
Also I am using Origin 8.SR0.
Thank you.
AB

AB
a.abc.b35 Posted - 01/13/2011 : 12:15:47 PM
Thanks Sam. I think it is worth trying. But my problem is I don't know how to run this script in Origin C. I have been looking at the online helps but they did not help me much. Could you please post the same script as it should be put in Origin C and instructions how to execute it. Thanking you in advance.
AB

AB
Sam Fang Posted - 01/12/2011 : 03:54:04 AM
For NLFit in Origin8.5, you can use Labtalk script to get fit parameter values from the active fitting report sheet. For example, to get values from FitNL1 report in Book1, run the following script in Command Window, all fitting values are stored in the tree tt.

win -a Book1;
page.active$="FitNL1";
getnlr tt;
tt.a=;
tt.e_a=;
tt.chisqr=;
tt.adjr=;


Sam
OriginLab Technical Services

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