Writing S-Functions | ![]() ![]() |
Determine whether a port is connected to a nonvirtual block.
Syntax
int_T ssGetInputPortConnected(SimStruct *S, int_T port)
Arguments
S
SimStruct representing an S-function block or a Simulink model.
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
![]() | ssGetInputPortBufferDstPort | ssGetInputPortComplexSignal | ![]() |