| Writing S-Functions | ![]() |
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 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
ssSetNumInputPorts
| ssGetInputPortComplexSignal | ssGetInputPortDataType | ![]() |