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
 Boltzmann fitting

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
Khosrove Posted - 03/21/2016 : 11:48:28 AM
Hello,

I want to fit the Boltzmann function to a dataset, without any specific parameters set.
Here is what I have tried, but it just creates a graph of the dataset and a workbook with x values and "10" in every single cell of the fit column.
What am I doing wrong here?

nlsf.func$ = Boltzmann; // select Boltzmann fitting function
nlsf.fitdata$ = Book2_HH@9; // define dataset to be fitted ;
nlsf.fit(100); // iterate 100 times

4   L A T E S T    R E P L I E S    (Newest First)
Khosrove Posted - 03/22/2016 : 09:13:53 AM
Thank you for your answers Hideo Fujii.

I got it to work in the end by setting the parameters.

nlsf.func$ = Boltzmann; // select Boltzmann fitting function
nlsf.fitdata1$ = [Book2]Sheet7!col(3); // define dataset to be fitted ;
nlsf.p1 = 701; // A1 of first dataset
nlsf.p2 = 106475; // A2 of first dataset
nlsf.p3 = 827.25523; // x0 of first dataset
nlsf.p4 = 28.4254; // dx of first dataset
nlsf.fit(100); // iterate 100 times
Hideo Fujii Posted - 03/21/2016 : 3:39:10 PM
Hi Khosrove,

Sorry, but I cannot reproduce the problem because I don't have Origin 8 on my machine. You got the error probably because of the version compatibility. As far as I tried Origin 8.1, it worked.
If you just need to get the fitting result, you can try the evaluation version of Origin 2016.
http://www.originlab.com/demodownload.aspx

--Hideo Fujii
OriginLab
Khosrove Posted - 03/21/2016 : 2:22:37 PM
Hello Hideo Fujii,

I have OriginPro 8 SR4, sorry for not mentioning that earlier.
I tried your script, but in return I get:

general operation failure
general operation failure
general operation failure
general operation failure
Internal error code: -898, -28673

#Command Error!
Hideo Fujii Posted - 03/21/2016 : 1:38:49 PM
Hi Khosrove,

nlsf objects are obsolete, and you should use NLFit x-functions like:
nlbegin iy:=[Book2]9!col(HH) func:=Boltzmann;
nlfit;
nlend 1;
See details in http://www.originlab.com/doc/X-Function/ref/nlbegin .

Hope this helps.

--Hideo Fujii
OriginLab

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