Specify the offset time of an input port
real_T ssSetInputPortOffsetTime(SimStruct *S, int_T inputPortIdx, real_T offset)
S
SimStruct representing an S-Function block.
inputPortIdx
Index of the input port whose offset time is being set.
offset
Offset time.
The real_T
value of the offset time passed into the
macro.
Use in mdlInitializeSizes
(after
ssSetNumInputPorts
) to specify the sample time offset for
each input port index. Input port index numbers start at 0 and end at the total
number of input ports minus 1. You can use this macro in conjunction with
ssSetInputPortSampleTime
if you have specified port-based
sample times for your S-function.
C, C++
See the S-function sfun_multirate.c
used in sfcndemo_sfun_multirate
.