
24
Data Dictionary Object Description
Variable
Defines the properties of a variable in
the C code. All kinds of variables are
supported: plain variables, pointers,
macros, structs and bitfields. Relevant
variable properties are Type, Class,
Scaling, Value, Min, Max. Further
properties exist to describe how a
variable can be accessed in a
calibration system, for example,
ByteOrder, Deposit, Format and
MaxRefreshRate. The latter mentioned
properties were not tested in this work.
Typedef
Defines a C data type, including
pointers, structs and bitfields. The user
can create user-defined types. Each
typedef is mapped to one of TargetLink
basetypes like Bool, Int8, or Int16. If
needed, the user can also associate a
typedef with certain constraints, e.g., a
scaling data object or min/max values.
Scaling
Describes how to convert the fixed-
point representation of a variable in the
ECU memory into the corresponding
physical value.
Table 4: TargetLink Data Dictionary object types
Another useful tool is the Property Manager. It is a graphical user interface that
displays the properties of TargetLink blocks in the model. The Property Manager
allows the user to view and modify several blocks properties simultaneously.
To make the model easier to follow, the blocks properties are preferred to be
visible in the model. Properties like data type, offset and scaling are practical
information to have visible in the model to make it easier for the user to see, for
example, if scaling mismatch occurs. TargetLink makes this possible but only
during the use of the automatic scaling tool. The information disappears as soon
as the automatic scaling tool is closed. According to dSPACE a script can be
written that will make the desired information visible constantly
2
.
To have default block properties is not fully supported by TargetLink. The only
default property that TargetLink blocks can have is the data type e.g. Int16, Int32
or Bool
3
.
2
Jonas Cornelsen from Fengco.
3
Has not been tested in this work but Jonas Cornelsen from Fengco has confirmed it.
Commenti su questo manuale