Writing S-Functions    
ssGetDataTypeId

Get the ID of a data type.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

name
   Name of a data type.

Description

Returns the ID of the data type specified by name if name is a registered type name. Otherwise, this macro returns INVALID_DTYPE_IDL and reports an error. Because this macro reports any error that occurs, you do not need to use ssSetErrorStatus to report the error.

Languages

C

Example

The following example gets the ID of the data type named Color.

See Also
ssRegisterDataType


  ssGetContStates ssGetDataTypeName