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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 282
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 203
A
model.rtw
A-20
Block Type: Derivative
The Derivative block computes its derivative by using the approximation
(input–prevInput)/deltaT
Two “banks” of history are needed to keep track of the previous input. This is because the input
history is updated prior to integrating states. To guarantee correctness when the output of the
Derivative block is integrated directly or indirectly, two banks of the previous inputs are needed.
This history is saved in the real-work vector. The following is an example of what will appear in the
model.rtw file for an input of width 5.
NumRWorkDefines 4
RWorkDefine {
Name TimeStampA
Width 1
}
RworkDefine {
Name LastUAtTimeA
Width 5
}
RworkDefine {
Name TimeStampB
Width 1
}
RworkDefine {
Name LastUAtTimeB
Width 5
Table A-3: Model.rtw File Contents — Block Specific Records (Continued)
Vista de página 203
1 2 ... 199 200 201 202 203 204 205 206 207 208 209 ... 281 282

Comentários a estes Manuais

Sem comentários