T O P I C R E V I E W |
oszkoa |
Posted - 10/16/2006 : 3:46:17 PM 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 |
4 L A T E S T R E P L I E S (Newest First) |
oszkoa |
Posted - 10/19/2006 : 09:41:03 AM Hi Mike,
Thank you for your help.
Regards, Oszkoa |
Mike Buess |
Posted - 10/17/2006 : 4:09:00 PM 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 |
oszkoa |
Posted - 10/17/2006 : 3:31:12 PM 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 |
zachary_origin |
Posted - 10/16/2006 : 10:46:58 PM 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 |
|
|