Determine whether a Dwork vector is used as a discrete state vector
int_T ssGetDWorkUsedAsDState(SimStruct *S, int_T vector)
S
SimStruct representing an S-Function block.
vector
Index of a Dwork vector, where the index is one of
0
, 1
, 2
,
...
ssGetNumDWork(S)-1
.
The int_T
value 1
(SS_DWORK_USED_AS_DSTATE
) if this vector is used to store a
block's discrete states. Otherwise, returns 0
(SS_DWORK_USED_AS_DWORK
).
Use to determine if the DWork vector specified by the index
vector
is used to store discrete state values.
C, C++
For more information on using DWork vectors, see How to Use DWork Vectors.