Technical data
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)>










