| Contents | Index |
DTypeId ssGetDWorkDataType(SimStruct *S, int_T vector)
SimStruct representing an S-Function block.
Index of a data type work vector, where the index is one of 0, 1, 2, ... ssGetNumDWork(S)-1.
The data type ID of the DWork vector specified by the index vector if the data type is valid. Otherwise, returns INVALID_DTYPE_ID.
Use to obtain the data type of a particular DWork vector. For a list of built-in values for the data type ID DTypeId, see ssGetInputPortDataType.
C, C++
The following example checks the data type of the first DWork vector.
DTypeId dt = ssgetDWorkDataType(S, 0);
if(dt == INVALID_DTYPE_ID) {
ssSetErrorStatus(S,"Invalid data type.");
}
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 |