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

white.string

Germany
Posts

Posted - 12/01/2005 :  2:07:34 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 12/02/2005 :  3:44:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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