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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 282
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 142
LibCacheNonFiniteAssignment
4
-21
LibCacheNonFiniteAssignment
Purpose
Call this function from inside
BlockInstanceSetup
to cache assignments that
need to be placed in the registration function because of nonfinite initialization.
Syntax
%<LibCacheNonFiniteAssignment(buffer)>
Arguments
buffer
Buffer to be cached for placement inside the model’s registration function.
Description
This function should be called from inside
BlockInstanceSetup
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.
Example
%openfile buffer
rtP.block.param_1 = rtInf;
rtP.block.param_i = rtNaN;
rtP.block.param_n = rtMinusInf;
%closefile buffer
%<LibCacheNonFiniteAssignment(buffer)>
Vista de página 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 281 282

Comentários a estes Manuais

Sem comentários