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
 Multi datasets global fit with replicas for 8.6.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

karlak

1 Posts

Posted - 02/24/2012 :  12:37:32 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release: OriginPro 8.6.0, b70
Operating System: Windows XP

Hi,

With Origin 7.0 Pro I used to fit multiple datasets, each with multiple gauss peaks (replicas).
It seems that it is not possible for Origin 8.6, replicas are grayed for multi dataset fitting. I need to share some parameters of respective datasets, the datasets are not identical, so I cannot use the concatenate fit. To fit the first dataset and supposed that the others would have the same peaks positions is not good approach. I tried LabTalk, but it does not work either.


int NbRep = 3; // No of replica
c = wks.ncols; // Nb of cols;
nlbegin iy:=(1, 3:$(c)) func:="gauss" nltree:=tt mode:=2 replica:=$(NbRep);

fit all datasets with one gauss peak only....

And only if I put one dataset

nlbegin iy:=(1, 3) func:="gauss" nltree:=tt mode:=2 replica:=$(NbRep);

fitting procedure use replicas, but not multiple dataset fitting


What is wrong? Thanks for help.


Karla

greg

USA
1379 Posts

Posted - 02/24/2012 :  2:52:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The current design does not allow for Replica when fitting multiple datasets except in the case of Concatenated fitting.

Normally we would suggest the use of Batch Processing, but since you seem comfortable with script then use something like:

ty -mb 0; // override any message boxes with No
loop(ii,2,wks.ncols)
{
nlbegin iy:=[Book1]Sheet1!(1,$(ii))
func:=gauss
nltree:=nlt
replica:=3; // 4 peak Gauss
nlfit;
nlend out:=1;
}
ty -me 1; // Restore messages

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