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
 Failed to resolve range string; nlfit script error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ulalume

Canada
1 Posts

Posted - 07/23/2014 :  12:15:53 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.0 SR 2 (64bit)
Operating System: win8

Hello;

I am new to using origin scripting, and am having troubles with a loop for Gaussian fitting of data (~400 colum of Y to one X). When I run my loop it gives the error:

Failed to resolve range string, VarName = iy, VarValue = (,ii), ii

I am not sure what the problem with my script is.

loop(ii, 2, wks.ncols)
{
nlbegin iy:=ii func:=gauss mode:=cons;
nlfit 3;
nlend 1;
};

I would appreciate any help is solving the issue.

lkb0221

China
497 Posts

Posted - 07/24/2014 :  10:24:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

If you want a consolidated report with independent fits (mode:=cons), there is no loop needed.
//
nlbegin iy:=(1,2:$(wks.ncols)) func:=gauss mode:=cons;
nlfit 3;
nlend 1;
//


Zheng
OriginLab

Edited by - lkb0221 on 07/24/2014 10:24:26 AM
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