Skip to Main Content Skip to Search
Product Documentation

ssSetStopRequested - Set the simulation stop requested flag

Syntax

void ssSetStopRequested(SimStruct *S, int_T val)

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 1, the Simulink engine halts the simulation at the end of the current time step.

Languages

C, C++

See Also

ssGetStopRequested

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS