T O P I C R E V I E W |
white.string |
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 |
1 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 12/02/2005 : 3:44:52 PM Suggestion... Open the script window, enter the command echo=1 and then try your script again. You should see more detailed error messages that might shed light on what's going wrong.
...Use echo=0 to disable error reporting.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 12/02/2005 3:45:45 PM |
|
|