Documentation

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(1or0) orboolean_T(trueorfalse) 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 usingssSetOutputPortOptimOptsto be connected to a Merge block.

Languages

C, C++

Introduced before R2006a