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
 Error code: Failed to resolve range string, VarNam

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
Larosso Posted - 01/19/2017 : 06:24:49 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8.0.63.988 SR6 v8.0988
Operating System: Windows XP Professional SP3

Hello,

I am a new user of Origin and LabTalk. I have a ready code to automatically generate a plot for my data set, but each time I am entering the code it's giving me "Command Error" and another screen with "Failed to resolve range string, VarName =iy, VarValue = <<1,3>, <4,5>, ...>."

Therefore, I want your support in how to resolve this error: I will copy the code down for your review, and I will attach the data that I am trying to plot. Moreover, I will try to attach the code error in the forum after posting it since the regulation doesnt allow more 200kb attachment.
I also appreciate the support in explaining the code from "speedmode sm:=off; laylink igl:=1 ..." till the end.

page.active$ = 10;
plotxy iy:=((1,3),(4,5),(6,7),(8,9),(10,11),(12,13),(14,15),(16,17),(18,19),(20,21),(22,23),(24,25),(26,27),(28,29),(30,31),(32,33)) plot:=201;
win -a Book1;

page.active$ = 15;
plotxy iy:=((1,3),(4,5),(6,7),(8,9),(10,11),(12,13),(14,15),(16,17),(18,19),(20,21),(22,23),(24,25),(26,27),(28,29),(30,31),(32,33)) ogl:=[Graph1]2!;
win -a Book1;

page.active$ = 20;
plotxy iy:=((1,3),(4,5),(6,7),(8,9),(10,11),(12,13),(14,15),(16,17),(18,19),(20,21),(22,23),(24,25),(26,27),(28,29),(30,31),(32,33)) ogl:=[Graph1]3!;
win -a Book1;

page.active$ = 25;
plotxy iy:=((1,3),(4,5),(6,7),(8,9),(10,11),(12,13),(14,15),(16,17),(18,19),(20,21),(22,23),(24,25),(26,27),(28,29),(30,31),(32,33)) ogl:=[Graph1]4!;
win -a Book1;

page.active$ = 30;
plotxy iy:=((1,3),(4,5),(6,7),(8,9),(10,11),(12,13),(14,15),(16,17),(18,19),(20,21),(22,23),(24,25),(26,27),(28,29),(30,31),(32,33)) ogl:=[Graph1]5!;
win -a Book1;

page.active$ = 35;
plotxy iy:=((1,3),(4,5),(6,7),(8,9),(10,11),(12,13),(14,15),(16,17),(18,19),(20,21),(22,23),(24,25),(26,27),(28,29),(30,31),(32,33)) ogl:=[Graph1]6!;
win -a Book1;

page.active$ = 40;
plotxy iy:=((1,3),(4,5),(6,7),(8,9),(10,11),(12,13),(14,15),(16,17),(18,19),(20,21),(22,23),(24,25),(26,27),(28,29),(30,31),(32,33)) ogl:=[Graph1]7!;
win -b graph1;

speedmode sm:=off; 
laylink igl:=1 destlayers:=2:0 XAxis:=1;
layalign igp:=graph1 igl:=1 destlayer:=2:0 direction:=left;
layalign igp:=graph1 igl:=1 destlayer:=2:0 direction:=bottom;
layalign igl:=1 destlayer:=2:7 direction:=left; 
layalign igl:=1 destlayer:=2:7 direction:=bottom;


2   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 01/19/2017 : 10:30:27 AM
Hi Larosso,

In my Origin 2017, the following x-function command doesn't produce "Failed to resolve range string" error.
plotxy iy:=((1,3),(4,5),(6,7),(8,9),(10,11),(12,13),(14,15),(16,17),(18,19),(20,21),(22,23),(24,25),(26,27),(28,29),(30,31),(32,33)) plot:=201;
So, I suppose Origin 8 has tighter limit of the number of input datasets in plotxy. If you reduce the the number
of input datasets, does it works? You can also try Origin 2017 evaluation version to test the fix.

Hope the above info is useful.

--Hideo Fujii
OriginLab
Larosso Posted - 01/19/2017 : 06:39:42 AM

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