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
 code well in origin7.5 but nothing happen in 8.5

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
ytyyutianyun Posted - 09/09/2012 : 05:14:24 AM
Origin Ver.8.5 and Service Release 2(Select Help-->About Origin):
Operating System:windows 7

I put it in custom.ogs

The code is

// Filename:    Custom.ogs
// Purpose:     The Custom Routine button on the standard toolbar will use this code, by calling
//		the [Main] section 
// Modifications:


////////////////////////////////////////////////////////////////////////////////
// Main Code 
////////////////////////////////////////////////////////////////////////////////


[Main]

document -e W {
	worksheet -s 3 0 3 0;  // select the thhird column
	worksheet -p 200 Line.otp;  // plot the third column
	layer.x.from = 0;
	layer.x.to = 800;
	layer.x.inc = 100;
}

loop (i, 1, 8) {
win -a "Graph$(i)";
label -s -p 40 0 -n label1 "x/d=$(10*i-4)";
label1.background = 1;
label -s -p 80 92 -n label1 "WW1"
}

loop (i, 9, 16) {
win -a "Graph$(i)";
label -s -p 40 0 -n label1 "x/d=$(10*i-84)";
label1.background = 1;
label -s -p 80 92 -n label1 "WW2"
}
1   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 09/13/2012 : 05:32:00 AM
Hi,

I have tried your script in both Origin 7.5, Origin 8.5 SR1 (please note, the latest SR for 8.5 is SR1, not sure why you have SR2) and Origin 8.5.1 (this version has SR2, please check whether you are using this version), and all work fine. Please make sure that you are running the script with the same project. Or could you please provide more details on reproduce this problem?

Penn

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