| Contents | Index |
int_T ssGetInputPortConnected(SimStruct *S, int_T port)
Either an int_T (1 or 0) or boolean_T (true or false) value indicating if the input port specified by the index port is connected to a nonvirtual block.
Returns 1 (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.
C, C++
See the S-function sfun_dynsize.c used in sfcndemo_sfun_dynsize.mdl.
ssGetOutputPortConnected, ssSetNumInputPorts

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |