| Contents | Index |
DTypeId ssSetDWorkDataType(SimStruct *S, int_T vector, DTypeId dtID)
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.
ID of a data type.
The data type ID specified by dtID. Returns -1 if dtID is DYNAMICALLY_TYPED.
Use in mdlInitializeSizes or mdlSetWorkWidths to set the data type of the specified work vector. For a list of built-in values for the data type ID dtId, see ssGetInputPortDataType. For more information on using DWork vectors, see Using Work Vectors.
C, C++
See the S-function sfun_rtwdwork.c used in sfcndemo_sfun_rtwdwork.mdl.
ssSetDWorkWidth, ssGetNumDWork

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 |