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 for Programming
 Forum for Origin C
 NLSF in Origin C and assigning parameters

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
oconnor Posted - 02/21/2005 : 10:00:03 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 02/21/2005 : 10:25:28 AM
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
Mike Buess Posted - 02/21/2005 : 10:19:33 AM
Hi Rod,

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

Mike Buess
Origin WebRing Member

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