MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuel de service Page 61

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 282
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 281 282

Commentaires sur ces manuels

Pas de commentaire