Immediately stops the simulation.

Syntax

Sub StopSimulation()

Remarks

Returns when the simulator has successfully stopped. If the simulator is already in the stopped state, it returns immediately.

A SimulationStop event is also triggered, and any incomplete output requests are considered complete, with a smaller run of data than requested.

All repeating inputs or outstanding data requests are cleared and must be reset before the next simulation is started.

See Also

RunSimulation

SetOutputRequest

GetOutputData