Writing S-Functions | ![]() ![]() |
Get a block's integer work vector.
Syntax
ssGetIWork(SimStruct *S)
Arguments
S
SimStruct representing an S-function block.
Description
Returns the integer work vector used by the block represented by S
. The vector consists of elements of type int_T
and is of length ssGetNumRWork(S)
. Typically, this vector is initialized in mdlStart
or mdlInitializeConditions,
updated in mdlUpdate
, and used in mdlOutputs
. You can use this macro in the simulation loop, mdlInitializeConditions
, or mdlStart
routines.
Languages
See Also
ssGetNumIWork
![]() | ssGetInputPortWidth | ssGetModelName | ![]() |