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

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 76
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 33
26
6.2 Supported Simulink Blocks and Their Properties
6.2.1 TargetLink
In a TargetLink subsystem the user can use TargetLink simulation blocks,
TargetLink utility blocks and supported Simulink blocks. Appendix II shows all
available blocks that the user can use to build a model in TargetLink.
If the user knows what blocks to use from the beginning then the implementation
of any control model can be done. Almost all TargetLink blocks have overflow
protection available. There are two separate alternatives for overflow protection,
one for the maximum value and one for the minimum value. The user can choose
protection against upper overflow, lower underflow or both. Figure 6 shows an
example of a Gain block and how overflow protection can be chosen easily.
Figure 6: TargetLink Gain block dialog
TargetLink provides the user with Addfile block that makes it possible to add
custom code to the generated code. Another block called Custom Code can also
be used for this purpose. This block uses S-function when simulating the model in
Simulink and in the generated code added in the Custom Code block is used
instead of the S-function in the model. All TargetLink blocks and Simulink
supported blocks are listed in Appendix II.
6.2.2 Real-Time Workshop Embedded Coder
Real-Time Workshop Embedded Coder supports all Simulink blocks except
Matlab Fcn and M-file and Fortran S-function which are not inlined with TLC,
Target Language Compiler [4]. Some blocks have restrictions, for example some
blocks cannot be used inside a triggered subsystem hierarchy as a triggered
subsystem can not include blocks that are dependant on a sample time since the
trigger makes it non-sample time based. On the other hand not all Simulink blocks
support fixed-point implementation and that should be taken into consideration.
Appendix III shows the fixed-point blocks that are supported by Simulink and
code generation tool [5].
Seitenansicht 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 75 76

Kommentare zu diesen Handbüchern

Keine Kommentare