| Writing S-Functions | ![]() |
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
See Also
mdlInitializeConditions, ssGetContStates, ssGetDiscStates
| mdlSimStatusChange | mdlTerminate | ![]() |
© 1994-2005 The MathWorks, Inc.