Download Target Language Compiler Reference Guide

Transcript
A
model.rtw
Data Type Information
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-6: Model.rtw Data Types
Variable/Record Name
Description
Data types defining all built-in (double, single, int8, uint8,
int16, uint16, int32, uint32, bool, fcncall) 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.
SLName
ASCII data type name. Note, this SLName is not to be confused
with the unmodified Simulink name parameters used elsewhere.
Id
Actual data type identifer which is used in Simulink. This is an
integer that corresponds to the data type name.
DataTypes {
}
}
A-20