Technical data

The RTW TLC Function Library
3-21
LibDefineRWork(block, name, width)
This call should be made from inside the block’s BlockInstanceSetup function,
and adds the specified
RWork definition to the block. The function creates and
maintains an internal record for the
RWork definition, removing the Simulink
definition if necessary.
LibDefineIWork(block, name, width)
This call should be made from inside the block’s BlockInstanceSetup function,
and adds the specified
IWork to the block. The function creates and maintains
an internal record for the
IWork definition. For example, a block may have
IWork records for system enable.
LibDefinePWork(block, name, width)
This call should be made from inside the block’s BlockInstanceSetup function,
and adds the specified
RWork definition to the block. The function creates and
maintains an internal record for the
RWork definition, removing the Simulink
definition if necessary.
LibCacheFunctionPrototype(buffer)
This function should be called from inside BlockTypeSetup to cache a function
prototype. Each call to this function appends your buffer to the existing cache
LibBlockIWork(iworkRef, ucv, lcv, sigIdx)
LibBlockPWork(pworkRef, ucv, lcv, sigIdx)
LibCacheNonFiniteAssignment(assignment)
LibPrevZCState(ucv, lcv, sigIdx)
LibDataStoreMemory(ucv, lcv, varIdx)
LibPathName(name)
LibIsFinite(value)
LibRenameParameter(block, param, newName)
LibBlockOutportLocation(ucv, lcv, sigIdx)
Table 3-6: Common TLC Functions (Continued)