This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Determine whether the simulation time is equal to the start time.


boolean_T ssIsFirstInitCond(SimStruct *S)



SimStruct representing an S-Function block.


The Boolean value true if the current simulation time is equal to the simulation start time. Otherwise, returns false.

    Note:   If this S-function resides in an enabled subsystem configured to reset states, and if the enabled system is enabled at the start time, then mdlInitializeConditions is called a second time and the Boolean value of ssIsFirstInitCond is false.


Use inside mdlInitializeConditions to determine if the callback is being invoked at the start of the simulation.


C, C++

Introduced before R2006a

Was this topic helpful?