Main Content

SimStatusChange

Respond to a pause or resumption of the simulation of the model that contains this MATLAB S-function

Required

No

Languages

MATLAB®

Syntax

SimStatusChange(s, status)

Arguments

s

Instance of Simulink.MSFcnRunTimeBlock class representing the Level-2 MATLAB S-Function block.

status

Status of the simulation, either 0 when paused or 1 when continued.

Description

The Simulink® engine calls this routine when a simulation of the model containing S pauses or resumes. This method is only valid for simulation.

Version History

Introduced in R2012b