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
 LabTalk Forum
 NLfit: script vs. menu
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

psoso

3 Posts

Posted - 07/13/2018 :  11:24:05 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.1.0
Operating System: winxp

Currently still learning and I am trying to have a simple fit execute on the active plot in a labtalk script.
Logistic fit + fixing A2 - rest is default - saved as myfittheme.

nlbegin theme:=myfittheme;
nlfit;
nlend 1;

It abides by my fixed parameters so I think this works? However, I am getting slightly different results from labtalk script vs. chosing the same fit theme from analysis->fitting->non-linear curve fit. (EC 50: 1,52 vs 1,58)

Since the script only loads the theme(which works perfecty fine on its own) I do not understand what is happening here. Already played with alot of options but I feel that I am missing somethign simple and very basic here.

yuki_wu

896 Posts

Posted - 07/15/2018 :  11:02:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I wonder if you have already saved the fixed status and the fixed value into the theme. You could open the NLfit dialog and select the theme you have saved, then click the triangle button to select Theme Setting… and check if the Fixed Status and Fixed Value checkbox is checked.

Regards,
Yuki

OriginLab
Go to Top of Page

psososo

1 Posts

Posted - 07/16/2018 :  06:48:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
yes, fixed value and status are saved.

Something just dawned on me though:
The plot I want to fit is created by
with plot designations on column properties:
A(X) E(Y) F(Y error)


I always fit from active graph window.
Going from menu apparently takes the y error into consideration(as weight) but for the labtalk command I had to specify it.
(more details here https://www.originlab.com/doc/Origin-Help/FIt-with-Err-Weight )

nlbegin theme:=myfittheme weight:=ins;
nlfit;
nlend 1;

this now appears to give me the same results. beginner's mistake, as expected. oh well.
Go to Top of Page

easwar

USA
1965 Posts

Posted - 07/17/2018 :  08:53:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

Thank you for reporting this issue. We will fix it in the next version.

ORG-18656

Easwar
OriginLab
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