Writing S-Functions | ![]() ![]() |
Specify the number of input ports that a block has.
C Syntax
void ssSetInputPortWidth(SimStruct *S, int_T port, int_T width)
Ada Syntax
procedure ssSetInputPortWidth (S : in SimStruct; port : in Integer := 0; width : in Integer);
Arguments
S
SimStruct representing an S-function block or a Simulink model.
width
Description
Use in mdlInitializeSizes
(after ssSetNumInputPorts
) to specify a nonzero positive integer width or DYNAMICALLY_SIZED
for each input port index starting at 0r
Languages
See Also
ssSetNumInputPorts, ssSetOutputPortWidth
![]() | ssSetInputPortVectorDimension | ssSetModeVectorValue | ![]() |