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
 Origin Forum
 Fit Comparison Tool

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
hauli Posted - 04/04/2006 : 03:11:07 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
Leo_Li Posted - 04/04/2006 : 05:39:30 AM
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

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