ssGetOutputPortBeingMerged
Determine whether the output of this block is connected to a Merge block
Syntax
int_T ssGetOutputPortBeingMerged(SimStruct *S, int_T port)
Arguments
SSimStruct that represents an S-Function block.
portIndex of the output port.
Returns
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.
Description
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.
Languages
C, C++
See Also
Version History
Introduced before R2006a