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, such ashalf
, 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 asfixdt(0,16,7)
. To specify the characteristics of the type interactively, expand the Data Type Assistant and set Mode toFixed 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 aSimulink.NumericType
whoseDataTypeMode
isFixed-point: unspecified scaling
.Note
Fixed-point: unspecified scaling
is a partially specified type whose definition is completed by the block that uses theSimulink.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:
Value Action Auto
(default)If no value is specified for Header file, export the type definition to
, wheremodel
_types.h
is the model name. If you have an Embedded Coder license, and you have specified a data type replacement, then export the type definition tomodel
rtwtypes.h
.
If a value is specified for Header file, import the data type definition from the specified header file.Exported
Export 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
is the data type name.type
Imported
Import 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
is the data type name.type
- 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
if Data scope equalstype
.hImported
orExported
, or defaults to
if Data scope equalsmodel
_types.hAuto
.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.