Technical data

3
Writing Target Language Files
3-20
The RTW TLC Function Library
The file funclib.tlc contains the RTW TLC function library. This file contains
the necessary TLC functions required to write a block target file.
Chapter 4, “Target Language Compiler Function Library Reference,” contains
detailed descriptions of all the TLC functions. This section focuses on the most
commonly used TLC functions, providing a general description of the functions.
Table 3-6: Common TLC Functions
LibDefineRWork(block, name, width)
LibDefineIWork(block, name, width)
LibDefinePWork(block, name, width)
LibCacheFunctionPrototype(buffer)
LibCacheDefine(buffer)
LibIsDiscrete(tid)
LibDataOutputPortWidth(portIdx)
LibDataInputPortWidth(portIdx)
LibBlockOutputSignal(portIdx, ucv, lcv, sigIdx)
LibBlockInputSignal(portIdx, ucv, lcv, sigIdx)
LibBlockParameter(paramRef, ucv, lcv, sigIdx)
LibBlockParameterAddr(paramRef, ucv, lcv, sigIdx)
LibBlockMatrixParameter(paramRef, rowUcv, rowLcv, rowSigIdx,
colUcv, colLcv, colSigIdx)
LibBlockMatrixParameterAddr(paramRef, ucv, lcv, sigIdx)
LibDiscreteState(ucv, lcv, sigIdx)
LibConinuousState(ucv, lcv, sigIdx)
LibBlockMode(ucv, lcv, sigIdx)
LibBlockRWork(rworkRef, ucv, lcv, sigIdx)