Is there some way to run loops through a method?
for local ii:= 1 to 10
variable x:= x + 1
waituntil eventController.isrunning = false
When I run this method, when the command eventcontroller.reset executes the simulation kill the method
and the loop doesnt occurs.
How to solve that?
By utilizing the EndSim-method of the model you could build it, but why should you do things that are already provided by the ExperimentManager. The ExpMgr is able to modify any parameter within a sequence of to be performed experiments.
that´s because I want the result to be recorded in variables once I get a screenshot from the model to report results. If I run the experiment manager the result will appear only in it´s report.
I am going to try the EndSim method.
Thank you for the advice.