ssGetOutputPortBeingMerged
Determine whether the output of this block is connected to a Merge block
Syntax
int_T ssGetOutputPortBeingMerged(SimStruct *S, int_T port)
Arguments
-
S
-
SimStruct representing an S-Function block.
-
port
-
Index of the output port.
返回
Anint_T
(1
or0
) orboolean_T
(true
orfalse
) value indicating if this output port signal is being merged with other signals.
Description
Use this macro in and after themdlSetWorkWidths
方法。返回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 usingssSetOutputPortOptimOpts
to be connected to a Merge block.
Languages
C, C++