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










