04-03-2018 09:59 AM
Dear Community,
a simple question i can't solve though; for doing simulation i can use both experiment manager and event controller.
i have write a method to save custom data but, when i use experiment manager, i need to save the data in a different type of folder and name so i need a code to understand when the experiment manager is running or not.
i've looked the whole methods but i wasn't able to find anything.
i've tried to use the user method of experiment manager but unfortunately is called just at the beginning and not at every experiment so it's useless.
Thank you.
Solved! Go to Solution.
04-04-2018 06:06 AM
Hello Francescopoli,
the Eventcontroller has an attribute called "ExperimentManager". This attribute is void whenever the simulation is not run by an ExperimentManager. So you could set a statement like this in your write a method
if EventController.ExperimentManager/=void --your method end
04-04-2018 06:28 AM
It is exactly what i need, thank you so much.