ssGetSimStatus
Get the current simulation status of an S-Function block
Syntax
ssGetSimStatus(SimStruct *S, SS_SimStatus *status)
Arguments
SSimStruct that represents an S-Function block.
statusSS_SimStatusobject that returns the current simulation status.
Description
Determines the simulation status of the block represented by S
and stores the value in the SS_SimStatus object
status. The variable status can have one
of the following values, defined in simstruc_types.h:
SIMSTATUS_STOPPEDThe simulation has terminated
SIMSTATUS_UPDATINGThe Simulink® engine is updating the model
SIMSTATUS_INITIALIZINGThe simulation is initializing
SIMSTATUS_RUNNINGThe simulation is running
SIMSTATUS_PAUSEDThe simulation is paused
SIMSTATUS_TERMINATINGThe simulation is terminating
SIMSTATUS_EXTERNALThe simulation is running in external mode
Languages
C, C++
Examples
The following lines obtain the current simulation status:
SS_SimStatus status; // Define the return variable ssGetSimStatus(S, &status);
Version History
Introduced in R2008a