MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuel de service Page 82

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 282
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 81
3
Writing Target Language Files
3-8
Coding Conventions
The following guidelines help ensure that the programming style in each TLC
file is consistent, and hence, more easily modifiable.
1
All identifiers in the RTW file begin with a capital letter. For example,
NumContStates 10
NumBlocks 52
Note that block records that contain a Name identifier should start the name
with a capital letter since the
Name identifier is often promoted into the
parent scope. For example, a block snippet may contain
Block {
:
TID 0
NumRWorkDefines 1
RWorkDefine {
Name "PrevT"
Width 1
}
PrevT RWorkDefine[0]
:
}
Since the Name identifier within the RWorkDefine record is promoted to
PrevT in its parent scope, it must start with a capital letter. The promotion
Vue de la page 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 281 282

Commentaires sur ces manuels

Pas de commentaire