ssSetNumIWork - Specify the size of a block's integer work vector
Syntax
void ssSetNumIWork(SimStruct *S, int_T nIWork)
Arguments
- S
SimStruct representing an S-Function block.
- nIWork
Number of elements in the integer work vector.
Description
Use in mdlInitializeSizes to specify the
number of int_T work vector elements as 0, a positive
integer, or DYNAMICALLY_SIZED. If you specify DYNAMICALLY_SIZED,
you can specify the true (positive integer) width in mdlSetWorkWidths;
otherwise, the width used is the width of the signal passing through
the block. The elements of the IWork vector are initialized to NULL until
values are assigned using ssSetIWorkValue or via
the pointer obtained fromssGetIWork.
Languages
C, C++
Example
See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_multirate.c used
in sfcndemo_sfun_multirate.mdl.
See Also
ssSetNumRWork, ssSetNumPWork, ssSetIWorkValue, ssGetIWork
 | ssSetNumInputPorts | | ssSetNumModes |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit