MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de servicio Pagina 103

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 282
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 102
The RTW TLC Function Library
3-29
Note: By convention, start parameter names with a capital letter since the
Name identifier of the Parameter record is promoted into the parent block
scope. It is not mandatory that you do so, however, the Target Language
Compiler will exit if you attempt this assignment:
%assign kp = LibBlockParameter(kp, "", "", 0)
The Target Language Compiler exits because it does not know if the first kp is
the block identifier
kp or a local variable kp. One way to avoid the confusion is
to qualify which
kp you are assigning. A valid assignment is:
%assign block.kp = LibBlockParameter(kp, "", "", 0)
Avoid the confusion and stick to the convention by renaming the variable Kp in
the TLC file
%assign kp = LibBlockParameter(Kp, "", "", 0)
LibBlockOutportLocation(ucv, lcv, sigIdx)
The behavior of this function is similar to LibBlockOutputSignal, except it
returns the appropriate reference to a block outport signal. For an example,
see
outport.tlc.
LibCacheNonFiniteAssignment(assignment)
This function should be called from inside BlockTypeSetup to cache
assignments that need to be placed in the registration function because of
nonfinite initialization. That is, the
rtInfs, rtNaNs, and rtMinusInfs
parameters are initialized to zero until the registration function is called,
re-initializing them to their appropriate value. Each call to this function
appends your buffer to the existing cache buffer.
Vista de pagina 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 281 282

Comentarios a estos manuales

Sin comentarios