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
 Origin Forum
 Fit Comparison Tool
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hauli

Austria
Posts

Posted - 04/04/2006 :  03:11:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: Windows XP

Hi,

I run into some problems with the results of the fit comparison tool:
I have some of my data masked (for it should not be used for the comparison); then I run the Fit comparison, and the results show up in the results window.
The results consist of three parts: the two fit results for data sets Data1_A and Data1_B and the result of the comparison

the problem is, that for the fit results of the two separate data sets all data is taken into account (even the data I masked)

But it seems that for the comparison masked data is not taken into account,

Thanks for any suggestion,
Hauli





Edited by - hauli on 04/04/2006 03:13:00 AM

Leo_Li

China
Posts

Posted - 04/04/2006 :  05:39:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi hauli,

You are right, this seems to be a bug in NLSF labtalk object when working on partially masked data. The simplest work-around is to delete the masked data, but it is not recommended. Since the fit comparison tool is written by using Origin C, you can actually fix the bug by following the steps in below:

1. Alt+4 to open the code builder.
2. In Code Builder, browse to <Origin root folder>\OriginC\OriginLab\CompareFit.c, open it. Make sure that "Add to Workspace" is checked in "Open" dialog.
3. Right below Line 53, add the following codes:

Worksheet wks(strResWks);
wks.AddCol();
wks.AddCol();
Dataset dsDataA(strResWks, 4);
Dataset dsDataB(strResWks, 5);
dsDataA.GetName(strCurve1);
dsDataB.GetName(strCurve2);
dsDataA.SetSize(isize1);
dsDataB.SetSize(isize1+isize2);
int i;
for (i = 0; i < isize1; i++)
{
dsDataA[i] = curve1[i];
}
for (i = 0; i < isize2; i++)
{
dsDataB[isize1+i] = curve2[i];
}

4. Shift+F8 to compile CompareFit.c
5. Run Tools -> Fit Comparison again.

Pls let us know if you run into any further problem.


Leo
OriginLab Corp.

Edited by - Leo_Li on 04/05/2006 02:19:44 AM
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