Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 sfun_multirate.c used in sfcndemo_sfun_multirate.

Introduced before R2006a

Was this topic helpful?