MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Servisní příručka Strana 133

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 282
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 132
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.
Zobrazit stránku 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 281 282

Komentáře k této Příručce

Žádné komentáře