Writing S-Functions | ![]() ![]() |
Get the width of an input port.
C Syntax
int_T ssGetInputPortWidth(SimStruct *S, int_T port)
Ada Syntax
function ssGetInputPortWidth(S : in SimStruct; port : in Integer := 0) return Integer;
Arguments
S
SimStruct representing an S-function block.
Description
Get the input port number of elements. If the input port is a 1-D array with w
elements, this function returns w
. If the input port is an M-by-N matrix, this function returns m*n
. If m
or n
is unknown, this function returns DYNAMICALLY_SIZED. Use in any routine (except mdlInitializeSizes
)
to determine the width of an input port.
Languages
See Also
ssSetInputPortWidth
![]() | ssGetInputPortSignalPtrs | ssGetIWork | ![]() |