| Contents | Index |
int_T ssGetNumDataTypes(SimStruct *S)
An int_T value indicating the number of registered data types.
Use to obtain the number of data types registered for this simulation. This includes all custom data types registered by custom S-Function blocks and all built-in data types. For a list of built-in data types, see ssGetInputPortDataType.
Note S-functions register their data types in their implementations of the mdlInitializeSizes callback function. Therefore, to ensure that this macro returns an accurate count, your S-function should invoke it only after the point in the simulation at which the Simulink engine invokes the mdlInitializeSizes callback function. |
The Simulink Coder product does not support S-functions that contain custom data types. Attempting to generate code for a model that contains this macro results in an error.
C, C++

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 |