| Writing S-Functions | ![]() |
Determine whether an output 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 output 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
See Also
ssGetInputPortConnected, ssSetNumInputPorts
| ssGetOutputPortComplexSignal | ssGetOutputPortDataType | ![]() |
© 1994-2005 The MathWorks, Inc.