| Contents | Index |
ssDWorkUsageType ssSetDWorkUsageType(SimStruct *S, int_T vector, ssDWorkUsageType type)
SimStruct representing an S-Function block.
Index of the data type work vector.
Usage type of the DWork vector.
The usage type entered in type.
Use this function in mdlInitializeSizes to set the usage type for the DWork vector specified by vector. Permissible values are:
SS_DWORK_USED_AS_DWORK
The DWork vector is used as a data type work vector. This is the default value.
SS_DWORK_USED_AS_DSTATE
The DWork vector is used to store the block's discrete states.
SS_DWORK_USED_AS_SCRATCH
The DWork vector is used as a temporary scratch work vector.
SS_DWORK_USED_AS_MODE
The DWork vector is used as a mode vector.
For more information on using DWork vectors, see Using Work Vectors.
C, C++
For more information on using DWork vectors, see Using Work Vectors.

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |