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 sfun_multirate.c
used in sfcndemo_sfun_multirate
.