Main Content

simResumed

Class: simevents.SimulationObserver
Package: simevents

Specify behavior when simulation resumes

Syntax

simResumed(obj)

Description

simResumed(obj) determines the behavior when the simulation resumes after pausing. Override this function to specify the behavior of your visualization when the simulation resumes, as determined by the SimulationStatus parameter.

Input Arguments

expand all

Object of class SimulationObserver

Examples

expand all

Call this method when model continues after pausing.

function simResumed(this)
            % Called when model continues from being paused
            
            % Restart the timer
            this.mTimerRequestPause = false;
            start(this.mTimer);
        end
Introduced in R2016a