Writing S-Functions | ![]() ![]() |
Specify that a data type work vector is used as a discrete state vector.
Syntax
void
ssSetDWorkUsedAsDState(SimStruct *S, int_T vector,
int_T usage)
Arguments
S
SimStruct representing an S-function block.
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
sGetDWorkUsedAsDState
![]() | ssSetDWorkName | ssSetDWorkWidth | ![]() |