Writing S-Functions | ![]() ![]() |
Specify that a data type work vector is used as a discrete state vector.
Syntax
Arguments
S
SimStruct representing an S-Function block.
vector
Index of a data type work vector, where the index is one of 0
, 1
, 2
, ...
ssGetNumDWork(S)
.
usage
How this vector is used.
Description
Use in mdlInitializeSizes
or mdlSetWorkWidths
to specify the usage of the specified work vector, either SS_DWORK_USED_AS_DSTATE
(used to store the block's discrete states) or SS_DWORK_USED_AS_DWORK
(used as a work vector, the default).
Languages
See Also
ssGetDWorkUsedAsDState
![]() | ssSetDWorkRTWTypeQualifier | ssSetDWorkWidth | ![]() |