Main Content

ssIsMajorTimeStep

Determine whether the simulation is in a major step

Syntax

boolean_T ssIsMajorTimeStep (SimStruct *年代)

Arguments

S

SimStruct representing an S-Function block.

Returns

The Boolean valuetrueif the simulation is in a major time step. Otherwise, returnsfalse.

Description

Use to determine if the simulation is currently running at a major or minor time step.

Languages

C, C++

Example

See the S-functionsfun_zc.cused insfcndemo_sfun_zcand the S-functionsfun_atol.cused insfcndemo_sfun_atol.

Version History

Introduced before R2006a