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
 LabTalk Forum
 auto fitting using LabTalk

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
idoidoido Posted - 01/20/2002 : 04:50:00 AM
i wrote the following LabTalk script in order to do a voigt fit:

nlsf.init()
nlsf.func$=Voigt;
nlsf.fitcolnum = 1
nlsf.fitWksName$=data1_A1;
nlsf.p1=0;
nlsf.p2=36;
nlsf.p3=10000;
nlsf.p4=10;
nlsf.p5=10;
nlsf.iterate(100);

but i have a problem: the script only works when i plot the data base before. i want it to fit directly from the data base.
how can i do that?
3   L A T E S T    R E P L I E S    (Newest First)
fzimnoch Posted - 03/20/2006 : 5:28:57 PM
Hello Idoidoido:

The following Labtalk script will fit to either a dataset in a worksheet or a curve in a plot depending on whether a worksheet or graph is active before you execute the script.

// Fit to Nth Column in Active Worksheet, or
// Fit to Nth Curve in Active Graph Window
n=3; //N is Nth Col or Curve of Active Window
nlsf.init();
nlsf.func$=Voigt;
nlsf.fitcolnum = 1;
nlsf.fitdata$=%(n,@D); //Fit Nth Column or Curve
nlsf.p1=0;
nlsf.p2=36;
nlsf.p3=10000;
nlsf.p4=10;
nlsf.p5=10;
nlsf.iterate(100);
nlsf.end();
rescale;
// The End (fsz)
Hideo Fujii Posted - 03/17/2006 : 5:08:06 PM
The above link is broken, and the new one is:
http://www.originlab.com/www/support/resultstech.aspx?ID=180&language=English

Laurie Posted - 01/21/2002 : 11:45:41 AM
Take a look at this Fitting with Script example and then let me know if you still have questions.

OriginLab Technical Support

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