ssSetInputPortOffsetTime
Specify the offset time of an input port
Syntax
real_T ssSetInputPortOffsetTime(SimStruct *S, int_T inputPortIdx, real_T offset)
Arguments
S
SimStruct that represents an S-Function block.
inputPortIdx
Index of the input port whose offset time is being set.
offset
Offset time.
Returns
The real_T
value of the offset time passed into the
macro.
Description
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.
Languages
C, C++
Examples
See the S-function sfun_multirate.c
used in sfcndemo_sfun_multirate
.
Version History
Introduced before R2006a