Author Topic: Initializing parameters and starting an Interpreted Simulation via Scripting  (Read 1725 times)

amin_triton

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
EA Version 14.0: I am trying to use Simulation on an activity diagram. Specifically, I am trying to initialize different sets of parameters so I can run the Simulation while it automatically interprets the parameter values (i.e. sim.controllerFault=true)  through decision nodes (first picture below).
 
I have successfully tested that using the Execution Analyzer (second picture below) but I would prefer to use the Scripting section and run a JavaScript to do the same i.e., to first initialize the parameters (i.e. sim.controllerFault=true) in the script (instead of Execution Analyzer) and then use Repository.Simulation.Start(); to run the simulation.
 
I would like to avoid updating the parameters manually in the Execution Analyzer since I would like to run the simulation many times using different set of parameter values and maybe even from outside EA using the API. Is such a feature available in Scripting section of EA?
It seems that as soon as I run Repository.Simulation.Start all the local parameters that were initialized before that are removed.
 
What I have also tried so far but did not work: Repository.Simulation.Start and then using Repository.Simulation.BroadcastSignal