Writing S-Functions    
ssSetInputPortSampleTime

Specify the sample time of an input port.

Syntax

Arguments

S
   SimStruct representing an S-Function block or a Simulink model.

inputPortIdx
   Index of the input port whose sample time is being set.

Sample 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

C

See Also
ssSetNumInputPorts, ssSetInputPortOffsetTime


  ssSetInputPortReusable ssSetInputPortSampleTimeIndex