Writing S-Functions | ![]() ![]() |
Initialize the state vectors of this S-function.
Syntax
void mdlStart(SimStruct *S)
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 | ![]() |