Writing S-Functions | ![]() ![]() |
Initialize the state vectors of this S-function.
Syntax
Arguments
S
SimStruct representing an S-Function block.
Description
Simulink invokes this optional method at the beginning of a simulation. It should initialize the continuous and discrete states, if any, of this S-Function block. Use ssGetContStates
and/or ssGetDiscStates
to get the states. This method can also perform any other initialization activities that this S-function requires.
Languages
See Also
mdlInitializeConditions, ssGetContStates, ssGetDiscStates
![]() | mdlSetWorkWidths | mdlTerminate | ![]() |