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
 Origin Forum
 adjust columns
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2 Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ungat

Belgium
Posts

Posted - 11/15/2005 :  3:12:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
[quote]
Change the command %R_B += %A_J to %R_B += %A_%A.

Excuse me it doesn't work, there is nothing in %R_B
Go to Top of Page

ungat

Belgium
Posts

Posted - 11/15/2005 :  3:30:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
[quote]
Change the command %R_B += %A_J to %R_B += %A_%A.

Excuse me I have an other solution to have the average,

how do you do to have Average Multiple Curves of a graph by using script window ?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 11/15/2005 :  4:53:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Graph must be active when you run this...

%Z="";
lay -c;
win -t D;
%A=%[%Z,#1];
copy xof(%A) %H_A;
copy %A %H_B;
nn=1;
loop (ii,2,count) {
%A=%[%A,#ii];
%H_B += %A;
nn++;
};
%H_B /= nn;

...And this fixes the script in my previous post...

%Z=AB CE MN;
win -t D;
%A=%[%Z,#1];
copy xof(%A_%A) %H_A;
copy %A_%A %H_B;
nn=1;
for(ii=2;ii>0;ii++) {
%A=%[%Z,#ii];
if(%A=="") break;
%H_B += %A_%A;
nn++;
};
%H_B /= nn;

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 11/15/2005 5:05:46 PM

Edited by - Mike Buess on 11/15/2005 5:10:52 PM
Go to Top of Page

ungat

Belgium
Posts

Posted - 11/16/2005 :  05:28:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello, thank you very much,

I have another question, how do you indicate in script window Plot Details for Line:

- Connect ?

- Styl ?

- Line Width

- Line Color ?

for example for
win -t P; // create graph window
layer -i200 Toto_tata;

Thank you again.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 11/16/2005 :  07:13:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use the set command. For example,

set Toto_tata -c 2; // color Toto_tata plot red

Help > Programming > LabTalk Language Reference > Command Reference > Alphabetical Listing > Set

Mike Buess
Origin WebRing Member
Go to Top of Page

ungat

Belgium
Posts

Posted - 11/17/2005 :  11:42:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Mike Buess, excuse me for disturbing you again,

1) is it possible to make several Custom Routine buttons ? I have made a Custom Routine button for one script; but what can I do for other scripts ? because I have several script window which I have to use more than once.

2) I think script window page length is limited, because I can't continue.

3) is it possible that a script submit an other script after its execution ?

I would like execute a script A which will submit a script B after its execution; the 2 script are located in the same directory.

Thank you very much.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic   Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000