Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssSetInputPortOffsetTime - Specify the offset time of an input port

Syntax

real_T ssSetInputPortOffsetTime(SimStruct *S,
  int_T inputPortIdx, real_T offset)

Arguments

S

SimStruct representing 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++

Example

See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_multirate.c used in sfcndemo_sfun_multirate.mdl.

See Also

ssSetNumInputPorts, ssSetInputPortSampleTime

  


Related Products & Applications

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