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
 Some script lines are ignored

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
lunchpack Posted - 07/20/2014 : 06:18:33 AM
Origin Ver. and Service Release (Select Help-->About Origin): 90E x64
Operating System: Win 8.1 x64

Hi all,

I have a problem with a script that is plotting some data and then applying a theme:

//some plotting into 3 layers, not included
layer -s 1;
yl.text$ = "text";
layer -s 2;
label -yr "text";
yr.fsize=28;
yr.color=12;
yr.rotate=-90;
layer.y2.label.numformat=5;
layer -s 3;
label -xt "text";
xt.fsize=28;
xt.top=50;

What's happening now is that all the lines are executed, but NOT:

layer.y2.label.numformat=5;
and
xt.top=50;

However if I copy the whole script into the script window and execute it line by line it works like a charm.

I tried thousend possibilities, such as putting the ignored lines at the very end in a distinct section. Did not help.

I also tried putting it in a separate script, patch.ogs, containing:

layer -s 2;
layer.y2.label.numformat=5;
layer -s 3;
xt.top=50;

*When I execute this script manually after the original one, it works.
*When I call the patch script at the end of the original script using
run.file(%y...\patch.ogs)
Surprise: It does not work. I put a type -b "done" at the end of the patch-file, to be sure it really is executed and not aborted.
The done message is shown, but the layer-formatting commands are ignored. Not so if I just call the script manually after the original one. What is wrong here?

Is there any command like relax for latex? To tell it to take a break and get it's stuff together, focus on the next line?

Thank you very much for any hints!

Best regards,
lunchpack

//edit: typo
2   L A T E S T    R E P L I E S    (Newest First)
lunchpack Posted - 07/24/2014 : 10:41:56 AM
Hey Zheng,
that did the job, thanks. Problem solved.
Cheers,
lunchpack
lkb0221 Posted - 07/24/2014 : 10:17:13 AM
Hi,

You can try adding a "sec -p 0.1" (to pause the current process for 0.1s) between the working part and the ignored part.

Zheng
OriginLab

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