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

  • 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 282
Custom Code Library
11-5
model.h Header File block
model.prm — Parameter File block
model.c — Source File block
model.reg Registration File block
The six function blocks in the second and third rows contain text fields to insert
critical code sections at the top and bottom of these designated model functions:
Registration function Registration Function block
MdlStart — MdlStart Function block
MdlTerminate — MdlTerminate Function block
MdlOutputs — MdlOutputs Function block
MdlUpdate — MdlUpdate Function block
MdlDerivatives — MdlDerivatives Function block
Each block provides a dialog box that contains three fields.
Example of How to Use a Custom Code Block
The following example uses an MdlStart Function block to introduce code into
the
MdlStart function. The diagram below shows a simple model with the
Custom Code block inserted.
Vue de la page 282
1 2 ... 278 279 280 281 282 283 284 285 286 287 288 ... 385 386

Commentaires sur ces manuels

Pas de commentaire