MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Wartungshandbuch Seite 62

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 282
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 61
2
Working with the Target Language
2-42
Variable Scoping
The Target Language Compiler uses a form of dynamic scoping to resolve
references to variables. This section illustrates the process that the Target
Language Compiler performs in determining the values of variables.
In the simplest case, to resolve a variable the Target Language Compiler
searches the top-level RTW pool followed by the global pool. This illustration
shows the search sequence that the Target Language Compiler uses.
Figure 2-4: Search Sequence
You can modify the search list and search sequence by using the %with
directive. When you add a construct such as:
%with CompiledModel.system[sysidx]
...
%endwith
Global Pool
%assign a = …
%assign b = …
Top-Level RTW Pool
CompiledModel {
}
2
1
Seitenansicht 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 281 282

Kommentare zu diesen Handbüchern

Keine Kommentare