Running the simulation several times automatically
Posted: Sun Jul 05, 2009 10:54 pm
I was hoping to be able to get the simulation to run several times but doing thing
but it just runs once. What can I do about this?
Code: Select all
runtimes=20
xpanel("Run Control")
xvalue("Simulation Repititions", "runtimes")
xbutton("Run", "gorun()")
xpanel()
proc gorun() {
for n=0, runtimes-1 {
run()
}
}
proc run() {
preprocess()
print "RUNNING SIMULATION..."
stdinit()
continuerun(tstop)
postprocess()
}