Author |
Topic |
|
Larosso
4 Posts |
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;
|
|
Larosso
4 Posts |
Posted - 01/19/2017 : 06:39:42 AM
|
|
|
|
Hideo Fujii
USA
1582 Posts |
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 |
Edited by - Hideo Fujii on 01/19/2017 10:31:40 AM |
|
|
|
Topic |
|
|
|