ssGetOutputPortOffsetTime - Get the offset time of an output port
Syntax
real_T ssGetOutputPortOffsetTime(SimStruct *S,
int_T outputPortIdx)
Arguments
- S
SimStruct representing an S-function block.
- outputPortIdx
Index of an output port.
Returns
A real_T value indicating the offset time
of the output port specified by the index outputPortIdx.
Description
Use in any routine (except mdlInitializeSizes)
to determine the offset time of an output port. This macro should
only be used if you have specified port-based sample times.
Languages
C, C++
Example
See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_multirate.c used
in sfcndemo_sfun_multirate.mdl.
See Also
ssSetOutputPortOffsetTime, ssGetOutputPortSampleTime
 | ssGetOutputPortNumDimensions | | ssGetOutputPortOptimOpts |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit