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
 Origin Forum
 Append fit parameter values to a file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a.abc.b35

175 Posts

Posted - 01/12/2011 :  01:28:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Sam Fang

293 Posts

Posted - 01/12/2011 :  03:54:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - Sam Fang on 01/12/2011 03:54:50 AM
Go to Top of Page

a.abc.b35

175 Posts

Posted - 01/13/2011 :  12:15:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

a.abc.b35

175 Posts

Posted - 01/13/2011 :  12:19:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Also I am using Origin 8.SR0.
Thank you.
AB

AB
Go to Top of Page

a.abc.b35

175 Posts

Posted - 01/13/2011 :  1:25:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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