MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Instrukcja Obsługi Strona 82

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 282
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 281 282

Komentarze do niniejszej Instrukcji

Brak uwag