MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuale di Servizio Pagina 61

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 281 282

Commenti su questo manuale

Nessun commento