ssSetDWorkUsageType
Specify how DWork vector is used in S-function
Syntax
ssDWorkUsageType ssSetDWorkUsageType(SimStruct *S, int_T vector, ssDWorkUsageType type)
Arguments
SSimStruct that represents an S-Function block.
vectorIndex of the Dwork vector.
typeUsage type of the DWork vector.
Returns
The usage type entered in type.
Description
Use this function in mdlInitializeSizes to set the usage type
for the DWork vector specified by vector. Permissible values
are:
SS_DWORK_USED_AS_DWORKThe DWork vector is used as a Dwork vector. This is the default value.
SS_DWORK_USED_AS_DSTATEThe DWork vector is used to store the block's discrete states.
SS_DWORK_USED_AS_SCRATCHThe DWork vector is used as a temporary scratch work vector.
SS_DWORK_USED_AS_MODEThe DWork vector is used as a mode vector.
For more information on using DWork vectors, see How to Use DWork Vectors.
Languages
C, C++
Examples
For more information on using DWork vectors, see How to Use DWork Vectors.
See Also
Version History
Introduced in R2007a