Technical data
The RTW TLC Function Library
3-23
they generate different results depending on whether RTW is in a loop-rolling 
state, or a non loop-rolling state, respectively.
Loop rolling is fully described later in this chapter. In short, however, this 
function looks at 
ucv, lcv, and sigIdx, and the RTW state to determine the 
return value. The variable 
ucv has highest precedence, lcv has the next 
highest precedence, and 
sigIdx has the lowest precedence. That is, if ucv is 
specified, it will be used. If 
ucv is not specified and lcv and sigIdx are 
specified, the returned value depends on whether or not RTW is currently 
rolling. If RTW is currently in a loop rolling state, 
lcv is used, otherwise sigIdx 
is used. If neither 
ucv or lcv are not specified, sigIdx is used. For an example 
of this function, see 
gain.tlc.
LibBlockInputSignal(portIdx, ucv, lcv, sigIdx)
The behavior of this function is similar to LibBlockOutputSignal, except it 
returns the appropriate reference to a block’s input signal. For example,
For an example of this function, see 
gain.tlc.
LibBlockParameter(param, ucv, lcv, sigIdx)
The behavior of this function is similar to LibBlockOutputSignal, except it 
returns the appropriate reference to a block’s parameter. The function can only 
be used for parameters of type 
Scalar or Vector. For example,
Function May Produce
LibBlockInputSignal(0, "i", "", sigIdx) rtB.blockname[i]
LibBlockInputSignal(0, "", lcv, sigIdx) u0[i1]
LibBlockInputSignal(0, "", lcv, sigIdx) rtB.blockname[0]
Function May Produce
LibBlockParameter(Gain, "i", "", sigIdx) rtP.Gain[i]
LibBlockParameter(Gain, "", lcv, sigIdx) p_Gain[i1]
LibBlockParameter(Gain, "", lcv, sigIdx) rtP.Gain[0]
LibBlockParameter(Gain, "", lcv, sigIdx) 2.5










