Writing S-Functions    
ssSetStopRequested

Set the simulation stop requested flag.

Syntax

Arguments

S
   SimStruct representing an S-Function block or a Simulink model.

val
   Boolean value (int_T) specifying whether stopping the simulation has been requested (1) or not (0).

Description

Sets the simulation stop requested flag to val. If val is not 0, Simulink halts the simulation at the end of the current time step.

Languages

C

See Also

ssGetStopRequested


  ssSetSolverNeedsReset ssSetTNext