Get a DWork vector
void *ssGetDWork(SimStruct *S, int_T vector)
SimStruct representing an S-Function block.
Index of a Dwork vector, where the index is one of
A pointer (
void *) to the DWork vector specified by the index
Use to obtain a pointer to a particular DWork vector. See How to Use DWork Vectors for more information on DWork vectors.
Do not use any of the
SimStruct functions that get
information about DWork vector if your S-function does not contain any DWork
vectors. Otherwise, your S-function produces errors during simulation.