Determine whether the output of this block is connected to a Merge block
int_T ssGetOutputPortBeingMerged(SimStruct *S, int_T port)
S
SimStruct representing an S-Function block.
port
Index of the output port.
An int_T
(1
or 0
) or
boolean_T
(true
or
false
) value indicating if this output port signal is being
merged with other signals.
Use this macro in and after the mdlSetWorkWidths
method.
Returns 1(true)
if this output port signal is being merged with
other signals (this happens if the S-Function block's output port is connected to a
Merge block directly or via connection type blocks).
The output port must be made reusable using
ssSetOutputPortOptimOpts
to be connected to a Merge block.
C, C++