Skip to Main Content Skip to Search
Product Documentation

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

Syntax

int_T ssGetNumDataTypes(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block.

Returns

An int_T value indicating the number of registered data types.

Description

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.

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.

Languages

C, C++

See Also

ssRegisterDataType

  


Related Products & Applications

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