Writing S-Functions | ![]() ![]() |
Specify the size of a block's pointer work vector.
Syntax
void
ssSetNumPWork(SimStruct *S, int_T nPWork)
Arguments
S
SimStruct representing an S-function block.
S
.
Description
Use in mdlInitializeSizes
to specify the number of pointer (void *
) 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.
Languages
See Also
ssSetNumIWork, ssSetNumPWork
![]() | ssSetNumOutputPorts | ssSetNumRunTimeParams | ![]() |