Writing S-Functions Previous page   Next Page
mdlStart

Initialize the state vectors of this S-function

Syntax

Arguments

S
   SimStruct representing an S-Function block.

M Syntax

M Arguments

s
   Instance of Simulink.MSFcnRunTimeBlock class representing the 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


Previous page  mdlSimStatusChange mdlTerminate Next page

© 1994-2005 The MathWorks, Inc.