Documentation Center

  • Trial Software
  • Product Updates

Contents

ssGetOutputPortConnected

Determine whether an output port is connected to a nonvirtual block

Syntax

int_T ssGetOutputPortConnected(SimStruct *S, int_T port)

Arguments

S

SimStruct representing an S-Function block.

port

Port whose connection status is needed.

Returns

An int_T (1 or 0) or boolean_T (true or false) value indicating if this output port signal is connected to a nonvirtual block.

Description

Use anywhere except in mdlInitializeSizes or mdlCheckParameters. Returns 1 (true) if the specified output port on the block represented by S is connected directly or indirectly, i.e., via virtual blocks, to a nonvirtual block. The S-function must have previously set the number of output ports in mdlInitializeSizes, using ssSetNumOutputPorts.

Languages

C, C++

Was this topic helpful?