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 for Programming
 Forum for Origin C
 NLSF in Origin C and assigning parameters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

oconnor

UK
Posts

Posted - 02/21/2005 :  10:00:03 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin):
Operating System: WinXP

Hi,

I am fitting a number of curves in Origin C with the following:

using NLSF = LabTalk.NLSF;
NLSF.Init();
NLSF.PasteToPlot = 1;
NLSF.Func$ = "boltzmann";
NLSF.FitData$ = strYDataName1;
NLSF.Execute("parainit");
NLSF.Fit(100);

I keep receiving error messages to the effect of "try setting parameter A2 as fixed" etc. How do I go about setting some parameters as fixed, while letting others vary with the NLSF.Execute("parainit") statement?

Thanks for your help.

Rod.

Mike Buess

USA
3037 Posts

Posted - 02/21/2005 :  10:19:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Rod,

NLSF.v1 = 1; // vary first parameter
NLSF.v2 = 0; // fix second parameter
- etc. -

Mike Buess
Origin WebRing Member
Go to Top of Page

easwar

USA
1965 Posts

Posted - 02/21/2005 :  10:25:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Rod,

Since this is a LabTalk object, you need to look under the LabTalk language reference help file to find all associated methods and properties of the NLSF object. You can look up the section: LabTalk Language Reference -> Object Reference -> Alphabetical Listing of Objects -> NLSF

Also, if you keep getting messages that ask you to fix one parameter or another, it is possible that the function and data are not a good match and no convergence is being acheived. Try fitting the data manually with the NLSF tool with the chosen function first.

Easwar
OriginLab



Edited by - easwar on 02/21/2005 10:27:07 AM
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