Get the name of a data type
const char *ssGetDataTypeName(SimStruct *S, DTypeId id)
S
SimStruct representing an S-Function block.
id
ID of a data type.
The name of the data type specified by id
, if
id
is valid. Otherwise, returns NULL
and
reports an error.
Use to obtain the name of a data type.
Note
Because this macro reports any error that occurs, you do not need to use
ssSetErrorStatus
to report the error.
For more information about using custom data types in S-functions, see Configure Custom Data Types.
C, C++
The following example gets the name of a custom data type.
const char *dtypeName = ssGetDataTypeName(S, id); if(dtypeName == NULL) return;