Simulink.AliasType
Property Dialog BoxUse 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
.
The data type to which this alias refers. The default is
double
. To specify another data type, such as
half
, 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.
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
,
where 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. |
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
.
is the data type name. |
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
.
is the data type name. |
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 equals type
.hImported
or
Exported
, or defaults to
if
Data scope equals model
_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>
.
Describes the usage of the data type referenced by this alias.