Skip to Main Content Skip to Search
Product 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.

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

mdlSetWorkWidths, ssSetOutputPortOptimOpts

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS