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
 LabTalk command curve fitting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Sprenger

Germany
15 Posts

Posted - 02/20/2019 :  06:42:25 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Orign2018 b9.5.1.195
Operating System:Windows 10

I am looking for the labtalk command to perform a curve fitting with weigthing

So far this works for the basic curve:
nlbegin iy:=(2,1) func:=boltzmann nltree:=tt;

now I want to add the following Weigths method (an option in the Dialog theme):
"Variance ~ y2"

how can I add this in a labtalk script?
Many thanks
Frank

yuki_wu

896 Posts

Posted - 02/21/2019 :  9:53:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Frank,

Try to set weight:=5. As usual, we define No Weight= 0, Instrumental = 1, Statistical = 2…

Regards,
Yuki

OriginLab
Go to Top of Page

Sprenger

Germany
15 Posts

Posted - 02/22/2019 :  05:39:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
OriginVer. 9.6.0.172
Operating System: Windows 10 (1803)

Dear Yuki, many thanks for your suggestion.
I have tried several weight settings, but they seem to be ignored totally, I am always getting the results as if no weight is selected.
With (manual) weight setting (by the interface in fitting window) the results are different. Here are my labtalk commands:


nlbegin iy:=(1,2) func:=boltzmann nltree:=tt weight:=stat;
nlfit;
tt.A1=3.1890203237919
tt.dx=618.24890090712


nlbegin iy:=(1,2) func:=boltzmann nltree:=tt weight:=5;
nlfit;
tt.A1=3.1890203237919
tt.dx=618.24890090712


nlbegin iy:=(1,2) func:=boltzmann nltree:=tt;
nlfit;
tt.A1=3.1890203237919
tt.dx=618.24890090712
Go to Top of Page

Sprenger

Germany
15 Posts

Posted - 02/22/2019 :  07:24:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Orign 2018 SR1
b9.5.1.195
Windows 10

Dear Yuki,
I tried the same commands on the older Orign 2018 version:
Now the weight is used, but (different results when weihgt:=stat is used) but the weight:=5 does not work and gives an error.

The Problem with Origin 2019 seems to be a but that does not recognize the weight et al.

Best
Frank

>>nlbegin iy:=(1,2) func:=boltzmann weight:=stat nltree:=tt;
nlfit;
>>tt.dx=
tt.dx=790.98729516533

>>nlbegin iy:=(1,2) func:=boltzmann nltree:=tt;
nlfit;
>>tt.dx=
tt.dx=618.24890090712

>>nlbegin iy:=(1,2) func:=boltzmann nltree:=tt weight:=5;
nlfit;
Variable value is not in predefined list, VarName = weight, VarValue = 5
#Command Error!
>>
Go to Top of Page

yuki_wu

896 Posts

Posted - 02/25/2019 :  02:44:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Frank,

I am sorry that it seems a bug. We have added this issue to our bug tracking database(ID: ORG-19744) and it is targeted to be fixed in the next version.

Sorry for the inconvenience.

Thanks,
Yuki

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