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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Failed to resolve range string; nlfit script error

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
ulalume Posted - 07/23/2014 : 12:15:53 PM
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.
1   L A T E S T    R E P L I E S    (Newest First)
lkb0221 Posted - 07/24/2014 : 10:24:03 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000