This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Get number of data types registered for this simulation, including built-in types


int_T ssGetNumDataTypes(SimStruct *S)



SimStruct representing an S-Function block.


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.

For more information about using custom data types in S-functions, see Custom Data Types.


C, C++

Introduced before R2006a

Was this topic helpful?