Writing S-Functions    
mdlStart

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

Ada, C

See Also

mdlInitializeConditions, ssGetContStates, ssGetDiscStates


 mdlSetWorkWidths mdlTerminate