Products & Services Industries Academia Support User Community Company

Learn more about Simulink   

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

The real_T value of the offset time passed into the macro.

Description

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.

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

ssSetNumOutputPorts, ssSetOutputPortSampleTime

  


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