white.string
Germany
Posts |
Posted - 12/01/2005 : 2:07:34 PM
|
Origin Version (Select Help-->About Origin): 7.5 SR5 Operating System: Win XP SP2
Hi,
I want to fit part of a dataset and write the fitting function into a new worksheet.
// Generate wks for fitting data win -t wks; win -r %H %WFit; wks.col1.type=4; wks.col1.name$="FitX"; wks.col2.type=1; wks.col2.name$="FitMBR"; wks.addcol(FitBT); wks.col3.type=1;
win -a Gr.%W.main; // Grafikfenster aktivieren layer -s 1; // Layer aktivieren
nlsf.cleanupfitdata(); nlsf.func$=parabola; nlsf.fitdata$=%Q_MBR; nlsf.dataBegin=RangeFrom/Delta_Y+1; nlsf.dataEnd=RangeTo/Delta_Y+1; nlsf.p1=0; nlsf.p2=0; nlsf.p3=0; // nlsf.fit(100); // worked well with this method
// new part which doesnt work... nlsf.xmode=0; // use original x-dataset for fitfunction nlsf.xBegin=RangeFrom/Delta_Y+1; nlsf.xEnd=RangeTo/Delta_Y+1; // nlsf.xPoints=63; nlsf.funcx$=%WFit_FitX; // Column to write the X-Data nlsf.funccol$=%WFit_FitMBR"; // Column to write the y-Data nlsf.iterate(100); nlsf.makecurve(func);
with nlsf.fit(100) everything worked, but when I try to replace this with the last part of my skript nothing happens, no error message - nothing.
Thanks for any comments! Rolf |
|