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

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 76
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 32
25
If a TargetLink license is not available a model can still be run in Model In the
Loop mode, which means that the model runs with floating-point. This allows co-
workers who do not have a license to have access to any model built in
TargetLink. These users can use TargetLink stand-alone-mode for which no
license is necessary.
6.1.2 Real-Time Workshop Embedded Coder
The user starts to build the model in Simulink using fixed-point and no model
conversion is necessary. It is recommended to use model reference for the
subsystem that the code will be generated for. This makes it easier to generate the
code.
In Simulink the user can easily visualise important information for every block in
the model. The user can choose to visualise port data types, storage class and
sorted order of every block in the model. These options are available in any
Simulink model under Format. In that way the user can easily follow the scaling
flow in the model.
RTW EC does not have the possibility to change the properties for several blocks
at the same time. The user has to change the properties of every block separately.
Matlab/Simulink offers Model Explorer which contains all data from the model.
Model Explorer allow the user to easily change the properties of every variable,
block or signal from the model without having to go back to the model interface.
Creating and saving a central data library that can be used in many models from
different projects is possible in RTW EC by using storage class objects. This has
not been investigated in this work.
Carrying out code modifications in RTW EC is not always straight forward. In
order to define a parameter as a macro in the generated code, two steps at least are
required. The user has to change properties for the parameter in two different
places in RTW EC tools. This is what makes it sometimes confusing for the user,
especially for first time users.
Most kinds of variables are supported in RTW EC: plain variables, pointers,
structs and macros with the restriction of the earlier mentioned Constant block.
Users who do not have a license for RTW EC and Fixed-Point Toolbox can also
run the model. These users must first change some properties in the Fixed-Point
Settings from the model Tools menu. These changes will enable users without
license to simulate with floating-point.
Seitenansicht 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 75 76

Kommentare zu diesen Handbüchern

Keine Kommentare