exitApplication

Syntax

exitApplication

The function exitApplication terminates the simulation run and exits Plant Simulation.

Note:

Plant Simulation does not save model data before exiting the program. Changes to the model or to the simulation data are lost if you do not save the model before, compare the function saveModel. Plant Simulation does not issue a warning or prompt asking you if you really want to exit Plant Simulation.

Note:

When Plant Simulation is terminated, all existing onCloseModel method classes in the Class Library, except of the onCloseModel method located in the Basis folder, are called. Within these methods you can execute clean-up tasks, for example delete temporary files.

The onCloseModel methods have to declare a boolean parameter. When Plant Simulation is terminated, the parameter has the value true. When the model is closed, the parameter has the value false.

Example

if EventController.time > 36000 
   saveModel("Variation_IIV")
   exitApplication
end

Related Topic

Exit