Writing S-Functions    
ssGetInputPortSampleTime

Get the sample time of an input port.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

inputPortIdx
   Index of port whose sample time is required.

Description

Use in any routine (except mdlInitializeSizes) to determine the sample time of an input port. You should use this macro only if you have specified the sample times as port-based.

Languages

C

See Also
ssSetInputPortSampleTime, ssGetInputPortOffsetTime


  ssGetInputPortReusable ssGetInputPortSampleTimeIndex