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
 Iterate through all graphs / worksheets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jlang

USA
Posts

Posted - 04/22/2004 :  3:44:54 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How to iterate through all the graphs in one file. I usually do it by
for (ii=1; ii<11; ii++) {
win -a HEADER$(ii-1)01-g; //bring up the graph window
run.section(, PROCESS);
}
It works ok as long as I keep all the graphs named under the same protocol. But I wonder if there is a more general way that doesn't require any knowledge of the graph window names.
Discussion and advices are appreciated.

Edited by - jlang on 04/22/2004 4:57:39 PM

Edited by - jlang on 04/22/2004 4:58:12 PM

Edited by - jlang on 04/22/2004 5:07:22 PM

Mike Buess

USA
3037 Posts

Posted - 04/22/2004 :  4:53:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use the document command...

doc -e P {
run.section(,PROCESS);
};

This will cycle through all graphs in the project and apply the bracketed script to each one.

Mike Buess
Origin WebRing Member
Go to Top of Page

jlang

USA
Posts

Posted - 04/22/2004 :  5:00:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Worked like a charm! Thanks a bunch.
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