Get a block's pointer work vector
void **ssGetPWork(SimStruct *S)
S
SimStruct representing an S-Function block.
A pointer to the PWork vector.
Use to access the pointer work vector used by the block represented by
S
. The vector consists of elements of type void
*
and is of length ssGetNumPWork(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++