Technical data

LibBlockParameter
4
-11
LibBlockParameter
Purpose
Determines a block’s parameter in the appropriate form depending on the state
of loop rolling
Syntax
%<LibBlockParameter(param, ucv, lcv, sigIdx)>
Arguments
param
Reference to a block parameter identifier.
ucv
User control variable string.
lcv
Loop control variable string.
sigIdx
Integer offset into signal.
Returns
A block’s parameter in the appropriate form depending on the state of loop
rolling,
InlineParameters
, and the specified index.
Description
LibBlockParameter
returns a block’s parameter in the appropriate form
depending on the state of loop rolling,
InlineParameters
, and the specified
index. The user control variable (
ucv
) has higher precedence than
lcv
and
sigIdx
. That is, the following results if
ucv
is specified:
%<LibBlockParameter(Gain, "ucv", "", 0)>
Otherwise, the
ucv
is specified as
""
, and the result depends on the truth table
below. Note that loop rolling is true whenever the loop control variable (
lcv
) is
not null.
Assume:
%<LibBlockParameter(Gain, "", "i", 0)>
P.blk.Gain[0] = 4.55
rtP.block.prm
If
ucv
is specified and
prm
is scalar.
rtP.block.prm[ucv]
If
ucv
is specified and
prm
is vector.