Writing S-Functions Previous page   Next Page
ssGetInputPortConnected

Determine whether a port is connected to a nonvirtual block

Syntax

Arguments

S
   SimStruct representing an S-Function block or a Simulink model.

port
   Port whose connection status is needed.

Description

Returns true if the specified port on the block represented by S is connected directly or indirectly, i.e., via virtual blocks, to a nonvirtual block. Can be invoked anywhere except in mdlInitializeSizes or mdlCheckParameters. The S-function must have previously set the number of input ports in mdlInitializeSizes, using ssSetNumInputPorts.

Languages

C

See Also
ssGetOutputPortConnected, ssSetNumInputPorts


Previous page  ssGetInputPortComplexSignal ssGetInputPortDataType Next page

© 1994-2005 The MathWorks, Inc.