ssGetDWorkUsedAsDState
Determine whether a Dwork vector is used as a discrete state vector
Syntax
int_T ssGetDWorkUsedAsDState(SimStruct *S, int_T vector)
Arguments
-
S
-
SimStruct that represents anS-Functionblock.
-
vector
-
Index of a Dwork vector, where the index is one of
0
,1
,2
,...
ssGetNumDWork(S)-1
.
Returns
Theint_T
value1
(SS_DWORK_USED_AS_DSTATE
) if this vector is used to store a block's discrete states. Otherwise, returns0
(SS_DWORK_USED_AS_DWORK
).
Description
Use to determine if the DWork vector specified by the indexvector
is used to store discrete state values.
Languages
C, C++
Examples
For more information on using DWork vectors, seeHow to Use DWork Vectors.
See Also
Version History
Introduced before R2006a