Text archives Help
- From: "J. Davison de St. Germain" <dav@cs.utah.edu>
- To: erh0509@westminstercollege.edu
- Cc: scirun-users@sci.utah.edu
- Subject: Re: [SCIRUN-USERS] timing of net execution from tcl
- Date: Mon, 24 Jan 2005 14:01:37 -0700 (MST)
Hi Elisha,
You're have derived the best available solution at this point. The
problem is that at the moment SCIRun does not have a notion of when a
network is done executing.
One change you could add to your solution is a command to set your
$m1-variable in the last line of the execute method of the last module
that is executed in you network. This way, you could remove the after
command and it would re-execute immediately when that point was
reached.
Hope this helps,
- McKay and Davison
SCIRun Development Team
>
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
-----------------------------------------------------------------------
- J. Davison de St. Germain dav@cs.utah.edu (801) 581-4078 -
- Chief Software Engineer
http://www.cs.utah.edu/~dav -
- SCI Institute, SE C-SAFE University of Utah -
-----------------------------------------------------------------------
===========================================================================
== 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 ==
===========================================================================
Archive powered by MHonArc 2.6.16.