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
 nlsf iteration methods
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mike Buess

USA
3037 Posts

Posted - 11/14/2003 :  3:23:12 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
What is the difference between these two nlsf iteration methods?

nlsf.iterate()
nlsf.iterateex()

The second shows up in the nlsf dump (nlsf.=) but doesn't appear in the programming guide.

Mike Buess
Origin WebRing Member

rtoomey

USA
184 Posts

Posted - 11/14/2003 :  5:17:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

nlsf.iterateex() was instituted when the NLSF Wizard was added in order to duplicate what happens when one clicks on the iteration buttons in the Advanced Fitting Tool (NLSF). This method works in conjunction with nlsf.compileparainit=[1/0]. This property allows one to use nlsf.iterateex() with parameter initializations or not, depending on the value. If the value is 0, it is expected that parameter initializations are hard coded somehow.

nlsf.iterateex() can have a value of 0. This allows one to redraw the fit curve at any time. In fact, it can even be used to put the fit curve onto any graph you want when used in conjunction with another cool method: nlsf.ouptput().

nlsf.output() takes a string as an argument. The string is the graph name that you want as the output. The method is tricky in that it must be repeated after nlsf.iterateex() to restore output to the original graph. These methods came in handy when dealing with the embedded graph in the NLSF Wizard, but should serve a purpose to some who like to use LabTalk to automate fitting routines.

nlsf.iterate() is the old method of iterating whereby iterations are performed, but other methods and properties are required to get the curve to appear (e.g. nlsf.makecurve()).

Take a look at NLSFWiz.OGS to see how nlsf.iterateex(), nlsf.output(), nlsf.compileparainit, and other new methods and properties are used to make the wizard work.

- Ryan

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 11/14/2003 :  6:07:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the explanation, Ryan. Sounds useful. I'll look at the OGS file you suggested.

Mike Buess
Origin WebRing Member
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