Main Content

simPaused

Class: simevents.SimulationObserver
Package: simevents

Specify behavior when simulation pauses

Syntax

simPaused(obj)

Description

simPaused(obj) determines the behavior when the simulation is paused. Override this function to specify the behavior of your visualization when the simulation pauses, as determined by the SimulationStatus parameter.

Input Arguments

expand all

Object of class SimulationObserver

Examples

expand all

Call this method when model is paused.

function simPaused(this)
            % Called when model is paused
            
            % Schedule the timer to stop when all pending animation is
            % completed
            this.mTimerRequestPause = true;
        end
Introduced in R2016a