Simulink.AliasType Property Dialog Box

Use a Simulink.AliasType object to rename data types for signal, state, and parameter data in a model. For examples and programmatic information, see Simulink.AliasType.

Base type

The data type to which this alias refers. The default is double. To specify another data type, select the data type from the adjacent drop–down list of standard data types or enter the data type name in the edit field.

To specify a fixed-point data type, you can use a call to the fixdt function, such as fixdt(0,16,7). To specify the characteristics of the type interactively, expand the Data Type Assistant and set Mode to Fixed point. For information about using the Data Type Assistant, see Specify Data Types Using Data Type Assistant.

You can, with one exception, specify a nonstandard data type, e.g., a data type defined by a Simulink.NumericType object, by entering the data type name in the edit field. The exception is a Simulink.NumericType whose DataTypeMode is Fixed-point: unspecified scaling.

Note

Fixed-point: unspecified scaling is a partially specified type whose definition is completed by the block that uses the Simulink.NumericType. Forbidding its use in alias types avoids creating aliases that have different base types depending on where they are used.

Data scope

Specifies whether the data type definition is imported from, or exported to, a header file during code generation. The possible values are:

ValueAction
Auto (default)If no value is specified for Header file, export the type definition to model_types.h, where model is the model name. If you have an Embedded Coder license, and you have specified a data type replacement, then export the type definition to rtwtypes.h.

If a value is specified for Header file, import the data type definition from the specified header file.
ExportedExport the data type definition to a header file, which can be specified in the Header file field. If no value is specified for Header file, the header file name defaults to type.h. type is the data type name.
ImportedImport the data type definition from a header file, which can be specified in the Header file field. If no value is specified for Header file, the header file name defaults to type.h. type is the data type name.
Header file

Name of a C header file from which a data type definition is imported, or to which a data type definition is exported, based on the value of Data scope. If this field is specified, the specified name is used during code generation for importing or exporting. If this field is empty, the value defaults to type.h if Data scope equals Imported or Exported, or defaults to model_types.h if Data scope equals Auto.

By default, the generated #include directive uses the preprocessor delimiter " instead of < and >. To generate the directive #include <myTypes.h>, specify Header file as <myTypes.h>.

Description

Describes the usage of the data type referenced by this alias.

See Also