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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 code well in origin7.5 but nothing happen in 8.5
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ytyyutianyun

48 Posts

Posted - 09/09/2012 :  05:14:24 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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"
}

Penn

China
644 Posts

Posted - 09/13/2012 :  05:32:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000