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
 maximum of 100 NLSF graphs?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Werner1

Netherlands
6 Posts

Posted - 05/14/2002 :  09:02:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
hello there,

i am having difficulties with the nlsf fit system. i use the understanding code to fit exponential decays to parts of a very long graph.
my problem is that after a while, i reach the 99th fit and then the fitted curves are not displayed anymore on the graph. the fit itself does work.

has anyone any idea on how to expand the number of fitted graphs?


thanks!


nlsf.init();

getnumber (Peak1Begin:) pka1 (Peak1End:) pkb1 (Peak2Begin:) pka2 (Peak2End:) pkb2 (Peak3Begin:) pka3 (Peak3End:) pkb3 [Set Peak coordinates:];
getnumber (Peak4Begin:) pka4 (Peak4End:) pkb4 (Peak5Begin:) pka5 (Peak5End:) pkb5 (Peak6Begin:) pka6 (Peak6End:) pkb6 [Set Peak coordinates:];

//do following 6 times:

nlsf.begin();
nlsf.func$=ExpDec1;
nlsf.cleanupfitdata( ); //begin fitting session
nlsf.p3=5;
nlsf.fitdata$=%(1,@D); //fit first dataset in layer
nlsf.databegin=pka1;
nlsf.dataend=pkb1;
nlsf.tolerance=0; //set tolerance
nlsf.wtype=0;
limit %C;
nlsf.xBegin=limit.xmin; //set up x values
nlsf.xEnd=limit.xmax;
nlsf.xPoints=1000; //number of data points for fitted curve
nlsf.fit(1000);
nlsf.end();



Laurie

USA
404 Posts

Posted - 05/16/2002 :  5:39:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This is a limitation in the method that generates the worksheets that store the NLSF data. These worksheets are named NLSF1, NLSF2, etc. all the way up to NLSF99. (These can be viewed in Project Explorer. View:Project Explorer) If you rename some of these worksheets to something other than 'NLSF', Origin will be able to generate more worksheets to hold the data for the fit and you will see fit curves beyond the 99th one.

This issue has been addressed in Origin 7 SR1; so is no longer a limitation.

Thank you.

OriginLab Technical Support
Go to Top of Page

Werner1

Netherlands
6 Posts

Posted - 05/22/2002 :  02:43:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks! but is it possible to change the store method to, lets say, 3 numbers aka with max at 999 ???

ciao


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