| Contents | Index |
int_T *ssGetIWork(SimStruct *S)
A pointer (int_T *) to the integer work vector for this S-function.
Use to access the integer work vector used by the block represented by S. The vector consists of elements of type int_T and is of length ssGetNumIWork(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.
C, C++
See the S-function stvctf.c used in sfcndemo_stvctf.mdl.
ssGetNumIWork, ssSetIWorkValue, ssGetIWorkValue

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |