Documentation Center

  • Trial Software
  • Product Updates

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++

Was this topic helpful?