Main Content

ssGetDataTypeIdAliasedThruTo

Get the base data type associated with a data type alias

Syntax

DTypeId ssGetDataTypeIdAliasedThruTo(SimStruct *S, DTypeId id)

Arguments

S

SimStruct that represents an S-Function block.

id

ID of the data type alias.

Returns

The base data type ID associated with the data type alias specified by id.

Description

Use to obtain the base data type associated with a data type alias. In a model, you can use a data type alias to represent these base data types:

  • Floating-point types

  • Integer types

  • Boolean

  • Enumerated types

  • Fixed-point types

For a list of values for the data type ID DTypeId, see ssGetInputPortDataType.

Note

ssGetDataTypeIdAliasedThruTo requires that you use ssSetOptions to set the SS_OPTION_SUPPORTS_ALIAS_DATA_TYPES option in order for your to S-function recognize data type aliases.

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

Languages

C, C++

Version History

Introduced in R2006a