Text archives Help
- From: "Elisha Hughes" <erh0509@westminstercollege.edu>
- To: <scirun-users@sci.utah.edu>
- Subject: [SCIRUN-USERS] timing of net execution from tcl
- Date: Fri, 21 Jan 2005 14:11:12 -0700
Dear SCIRun,
I am using a tcl script which repeatedly executes a net and changes some
variables with each execution.
In order to wait for the net to finish executing before starting a new
iteration, I am using the after and vwait commands. Something like this:
for {set i 0} {$i < 10} {incr i 1} {
$m1 execute
after 5000 {set $m1-variable $i}
vwait $m1-variable
}
I realize that this implementation is sort of amateur, but I haven't yet
found a better way to make the tcl script wait for net execution before
processing the next tcl command. What is the correct way to do this?
Thank you very much for your advice,
Elisha
===========================================================================
== The SCIRun Users mailing list: send email to majordomo@sci.utah.edu ==
== for more details. ==
== Please acknowledge use of SCIRun in your papers and reports: ==
== see
http://software.sci.utah.edu/scirun-biopse_citation.bib ==
===========================================================================
- [SCIRUN-USERS] timing of net execution from tcl, Elisha Hughes, 01/21/2005
Archive powered by MHonArc 2.6.16.