ssGetIWork
Get a block's integer work vector
Syntax
int_T *ssGetIWork(SimStruct *S)
Arguments
-
S
-
SimStruct representing an S-Function block.
Returns
A pointer (int_T *
) to the integer work vector for this S-function.
Description
Use to access the integer work vector used by the block represented byS
. The vector consists of elements of typeint_T
and is of lengthssGetNumIWork(S)
. Typically, this vector is initialized inmdlStart
ormdlInitializeConditions
, updated inmdlUpdate
, and used inmdlOutputs
. You can use this macro in the simulation loop,mdlInitializeConditions
, ormdlStart
routines.
语言
C, C++
Example
See the S-functionstvctf.c
used insfcndemo_stvctf
.