StartStopCtrl

Syntax

<Path>.StartStopCtrl:method

The attribute StartStopCtrl designates a Method object, which is called, whenever you click Start/Stop Simulation in the EventController. Note that, whenever you click Single Step Simulation in the EventController, Plant Simulation calls the method, processes the next event, and calls the method again.

Data Type of the Value You Can Assign

You can assign a value of data type method.

You can use the expression ?.IsRunning in the code of the control to tell if the EventController was started (false) or stopped (true).

Example

EventController.StartStopCtrl := &myStartStopControl

Related Topic

Start/Stop Simulation