Target Language Compiler    

Data Type Information (DataTypes record)

The DataTypes record provides a complete list of all possible data types that Simulink supports and the current mapping between the data types and a data type index. We strongly advise against adding to this list since future versions of Real-Time Workshop will extend this list and can result in new mappings of data types.

All data typing information is written in the following list of records within the DataTypes record. Individual records often specify an index into this table

Table A-7: Model.rtw Data Types
Variable/Record Name
Description
DataTypes {

Data types defining all built-in (double, single, int8, uint8, int16, uint16, int32, uint32, boolean, fcn_call, integer, pointer, action) and any blockset specific data types found within your model.

  NumDataTypes

Integer, total number DataType records that follow. This includes one record for each built-in data type plus specific records for blocksets.

  NumSLBuiltInDataTypes

Integer, number of Simulink built-in data types (less than or equal to NumDataTypes).

  StrictBooleanCheckEnabled

Integer (0/1) Flag that indicating whether model had boolean data types enabled or not.

  DataType {

One record for each data type in use.

    DTName

ASCII data type name.

    Id

Actual data type identifer which is used in Simulink. This is an integer that corresponds to the data type name.

    IdAliasedTo

Aliased-to data type identifier which is used in Simulink.

    IdResolvesTo

Resolves-to data type identifier which is used in Simulink.

  }

  IsSigned

Integer (0 or 1) flag indicating that data type has sign bit

  RequiredBits

Minimum number of bits required to represent data type

  FixedExp

Fixed-point exponent (specifies binary point)

  FracSlope

Fixed-point fractional slope

  Bias

Fixed-point bias

  IsFixedPoint

Integer (0 or 1) flag indicating that data type is fixed-point type

}

.


  Sample Time Information Target Properties