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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 282
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 60
Compiler Directives
2-41
adds a new parameter, N, at the end of an existing block with the name and
current value of an existing variable as shown in Figure 2-3. It returns the
block value.
Figure 2-3: Parameter Added to Existing Record
Scoping
The structure of the %with directive is:
%with expression
%endwith
The %with directive adds a new scope to be searched onto the current list of
scopes. This directive makes it easier to refer to block-scoped variables. For
example,
RTW file:
System {
Name "foo"
}
To access the Name parameter without a %with statement, use:
%<System.Name>
or using %with, use:
%with System
%<Name>
%endwith
Block {
.
.
.
N500
}
New Parameter
Przeglądanie stron 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 281 282

Komentarze do niniejszej Instrukcji

Brak uwag