MATLAB REAL-TIME WORKSHOP EMBEDDED CODER - S Bedienungsanleitung Seite 31

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 76
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 30
23
6 Simulation and Modelling
6.1 Usability
How easy and how practical it is to use the code generation tools is investigated in
this chapter. Simulink is the common main environment in both TargetLink and
RTW EC. The model can be built and tested in Simulink first and then converted
to the code generation tool since both TargetLink and Real-Time Worskhop
Embedded Coder use Simulink. The model can also be built directly in
TargetLink. Both TargetLink and RTW EC have tools that help the user along the
way while building and generating the code.
6.1.1 TargetLink
The user can directly use TargetLink blocks to build the model. It is also possible
to easily convert an already existing Simulink model to a TargetLink model.
TargetLink has a conversion tool which can be used to convert any model from
Simulink model to TargetLink model and vice versa. After conversion the user
will be able to enter scaling, data type and offset for every block in the model.
The user can easily specify which subsystem in the model the code will be
generated for. TargetLink generates code for only the subsystems that contain
TargetLink blocks. TargetLink subsystem can be part of a Simulink model. In that
way the user can use Simulink blocks connecting to the TargetLink block system
which makes it easy to test and handle in general.
TargetLink offers Data Dictionary, DD, where all central data can be saved. The
user can manage all variables and the corresponding properties from the Data
Dictionary Manager. A library for data can be created in the Data Dictionary and
a central data library is then available and can be accessed independently by any
project TargetLink model. This makes managing data practical and helps keep
data consistent, especially in large and complicated models. TargetLink gives the
user full freedom to save the desired properties as subjects in the Data Dictionary.
The user can, for example, choose to create a data object for scaling which the
user can refer to anywhere in a model. In that way the user will save time by just
referring to the created scaling object in several blocks in the model. If a change
in the data object occurs then the change will apply to all blocks that are
connected to that data object and the user will only need to make the desired
change once. There are different kinds of Data Dictionary objects and Table 4
shows the important kinds of these objects.
Seitenansicht 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 75 76

Kommentare zu diesen Handbüchern

Keine Kommentare