| T O P I C R E V I E W |
| idoidoido |
Posted - 01/20/2002 : 04:50:00 AM i wrote the following LabTalk script in order to do a voigt fit:
nlsf.init() nlsf.func$=Voigt; nlsf.fitcolnum = 1 nlsf.fitWksName$=data1_A1; nlsf.p1=0; nlsf.p2=36; nlsf.p3=10000; nlsf.p4=10; nlsf.p5=10; nlsf.iterate(100);
but i have a problem: the script only works when i plot the data base before. i want it to fit directly from the data base. how can i do that? |
| 3 L A T E S T R E P L I E S (Newest First) |
| fzimnoch |
Posted - 03/20/2006 : 5:28:57 PM Hello Idoidoido:
The following Labtalk script will fit to either a dataset in a worksheet or a curve in a plot depending on whether a worksheet or graph is active before you execute the script.
// Fit to Nth Column in Active Worksheet, or // Fit to Nth Curve in Active Graph Window n=3; //N is Nth Col or Curve of Active Window nlsf.init(); nlsf.func$=Voigt; nlsf.fitcolnum = 1; nlsf.fitdata$=%(n,@D); //Fit Nth Column or Curve nlsf.p1=0; nlsf.p2=36; nlsf.p3=10000; nlsf.p4=10; nlsf.p5=10; nlsf.iterate(100); nlsf.end(); rescale; // The End (fsz)
|
| Hideo Fujii |
Posted - 03/17/2006 : 5:08:06 PM The above link is broken, and the new one is: http://www.originlab.com/www/support/resultstech.aspx?ID=180&language=English
|
| Laurie |
Posted - 01/21/2002 : 11:45:41 AM Take a look at this Fitting with Script example and then let me know if you still have questions.
OriginLab Technical Support |