| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
real_T ssSetOutputPortOffsetTime(SimStruct *S, int_T outputPortIdx, real_T offset)
SimStruct representing an S-Function block.
Index of the output port whose sample time is being set.
Offset time of an output port.
The real_T value of the offset time passed into the macro.
Use in mdlInitializeSizes (after ssSetNumOutputPorts) 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++
See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_multirate.c used in sfcndemo_sfun_multirate.mdl.
ssSetNumOutputPorts, ssSetOutputPortSampleTime
![]() | ssSetOutputPortMatrixDimensions | ssSetOutputPortOptimOpts | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |