MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de Serviço Página 61

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 282
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 281 282

Comentários a estes Manuais

Sem comentários