MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Servisní příručka Strana 68

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 282
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 67
2
Working with the Target Language
2-48
is not searched. Also, if a %with is included within a function, its associated
scope is carried with any nested function call. For example,
Figure 2-8: Scoping Rules When Using %with Within a Function
Global Pool
%assign a = …
%assign b = …
Top-Level RTW Pool
CompiledModel {
}
%with CompiledModel
System[Sysidx]
6
%with expression2
Block[Blkidx]
%function function1
foo (x,y)
%with expression3
Name[Nmidx]
%function function2
bar ( )
%<variableX>
5
4
3
2
1
Zobrazit stránku 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 281 282

Komentáře k této Příručce

Žádné komentáře