Writing S-Functions | ![]() ![]() |
Specify the sample time of an input port.
Syntax
ssSetInputPortSampleTime(SimStruct *S,inputPortIdx,period)
Arguments
S
SimStruct representing an S-function block or a Simulink model.
period
Description
Use in mdlInitializeSizes
(after ssSetNumInputPorts
) to specify the sample time period as continuous or as a discrete value for each input port. Input port index numbers start at 0 and end at the total number of input ports minus 1. You should use this macro only if you have specified port-based sample times.
Languages
See Also
ssSetNumInputPorts, ssSetInputPortOffsetTime
![]() | ssSetInputPortRequiredContiguous | ssSetInputPortSampleTimeIndex | ![]() |