ssSetOutputPortOffsetTime
Specify the offset time of an output port
Syntax
real_T ssSetOutputPortOffsetTime(SimStruct *S, int_T outputPortIdx, real_T offset)
Arguments
-
S
-
SimStruct representing an S-Function block.
-
outputPortIdx
-
Index of the output port whose sample time is being set.
-
offset
-
Offset time of an output port.
Returns
Thereal_T
value of the offset time passed into the macro.
Description
Use inmdlInitializeSizes
(afterssSetNumOutputPorts
) to specify the sample time offset value for each output port index. Output port index numbers start at 0 and end at the total number of output ports minus 1. This should only be used if you have specified the S-function's sample times as port-based.
语言
C, C++
Example
See the S-functionsfun_multirate.c
used insfcndemo_sfun_multirate
.