MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guide de l'utilisateur Page 349

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 386
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 348
Introduction
14-5
generation. You can, however, perform explicit upcasting using the Data
Type Conversion block in Simulink.
S-Functions
S-functions provide a mechanism for extending the capabilities of Simulink.
They allow you to write your own Ada code and incorporate it into the Simulink
model as an S-function block in the generated code.
Ada MEX-files are not supported. You can use MEX-files in the Real-Time
Workshop Ada Coder by first developing S-functions as C MEX-files or M-files
for use with Simulink simulations. After the S-function has been tested with
Simulink, you must create a TLC file that directs the Target Language
Compiler to create Ada code that performs the algorithms defined in your
S-function. See the Target Language Compiler Reference Guide for more
information. Also, see examples located in
matlabroot/simulink/src and the
TLC files in
matlabroot/toolbox/simulink/blocks/tlc_ada.
The Real-Time Workshop Ada Coder generates code for a Simulink model and
compiles the generated code (along with the appropriate application modules)
to produce a stand-alone program that executes independently of Simulink.
Vue de la page 348
1 2 ... 344 345 346 347 348 349 350 351 352 353 354 ... 385 386

Commentaires sur ces manuels

Pas de commentaire