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
 Extracting fitting parameters to a worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

oszkoa

Hungary
47 Posts

Posted - 10/16/2006 :  3:46:17 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR5
Operating System: XP prof

Hi again,

It looks like the number of topics dealing with curve fitting has been increasing. Here's one more: Is there a way to save somehow the fitting parameters (e.g on the worksheet) for later use? In my very simple(?) case there are 6 measured points on which a linear should be fitted. I would need the slope of this linear to calculate(with the help of a little script) another parameter of the measurements. And more, these 6 points are changing from measurement to measurement, and I would like Origin to update the fitting parameters and provide the updated slope as well. Can it be done?

Thanks for your help,
Oszkoa

zachary_origin

China
Posts

Posted - 10/16/2006 :  10:46:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi oszkoa,

Thanks for the suggestion, we will consider these in next version.

> For the first one, if using non-linear curve fitting (Analysis: Non-linear Curve Fit: Advanced Fitting Tool), you can use the script of NLSF.pn (the nth parameter value) to read the value, or select Action: Results in Non-linear curve fit dialog, click Param Worksheet button in other options section to get the parameters worksheet. Of course there is always a clumsy method of copying the values to a worksheet manually.

> Regarding the auto-update of the fitting parameters, now there is no workaround. You need do it repeatly. But you can write a little script to do the fitting, then you can run the script without tedious manual operations.

Zachary
OriginLab Technical Services.


Edited by - zachary_origin on 10/17/2006 9:49:43 PM
Go to Top of Page

oszkoa

Hungary
47 Posts

Posted - 10/17/2006 :  3:31:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Zachary,

thank you for your hints. The method works fine. I will have to do some work with creating the little script you mentioned. Also, the NLSF.pn script is somewhat mysterious. Is it a built in script or I have to generate it?

Regards,
Oszkoa
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 10/17/2006 :  4:09:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Oszkoa,

NLSF.pn is a built-in property of LabTalk's NLSF object...

nlsf.p1=; // value of parameter 1
nlsf.p2=; // value of parameter 2
//etc.

If you intend to write fitting scripts I suggest you look at this...
Help > Programming > LabTalk Language Reference > Object Reference > Alphabetical Listing... > NLSF

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 10/17/2006 4:10:45 PM
Go to Top of Page

oszkoa

Hungary
47 Posts

Posted - 10/19/2006 :  09:41:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

Thank you for your help.

Regards,
Oszkoa
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