Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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++

Introduced before R2006a

Was this topic helpful?