Technical data

LibBlockOutputSignal
4
-10
LibBlockOutputSignal
Purpose
Determines the block’s output signal.
Syntax
%<LibBlockOutputSignal(portIdx, ucv, lcv, sigIdx)>
Arguments
portNum
Integer port number.
ucv
User control variable string.
lcv
Loop control variable string.
sigIdx
Integer offset into block signal.
Returns
The block’s output signal.
Description
LibBlockOutputSignal
returns the block’s output signal. The result is
determined by the values of
ucv
,
lcv
, and
sigIdx
. The result is as follows:
Notes:
The precedence is
ucv
,
lcv
, then
sigIdx
. That is, if
ucv
and
lcv
are
both specified,
ucv
takes precedence over
lcv
. Also, the vector index is only
added for wide signals.
B.block[ucv]
If
ucv
is specified.
y%<portIdx>[lcv]
If
lcv
is specified and signal is wide.
B.block
If
lcv
is specified and signal is scalar.
B.block[sigIdx]
Otherwise, where
[sigIdx]
is optional for wide
signals.