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 inmdlInitializeSizes
to specify the number ofint_T
work vector elements as 0, a positive integer, orDYNAMICALLY_SIZED
. If you specifyDYNAMICALLY_SIZED
, you can specify the true (positive integer) width inmdlSetWorkWidths
; otherwise, the width used is the width of the signal passing through the block. The elements of the IWork vector are initialized toNULL
until values are assigned usingssSetIWorkValue
or via the pointer obtained fromssGetIWork
.
拉nguages
C, C++
Example
See the S-functionsfun_multirate.c
used insfcndemo_sfun_multirate
.