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.

ssGetOutputPortOffsetTime

Get the offset time of an output port

Syntax

real_T ssGetOutputPortOffsetTime(SimStruct *S,
 int_T outputPortIdx)

Arguments

S

SimStruct representing an S-function block.

outputPortIdx

Index of an output port.

Returns

A real_T value indicating the offset time of the output port specified by the index outputPortIdx.

Description

Use in any routine (except mdlInitializeSizes) to determine the offset time of an output port. This macro should only be used if you have specified port-based sample times.

Languages

C, C++

Example

See the S-function sfun_multirate.c used in sfcndemo_sfun_multirate.

Introduced before R2006a

Was this topic helpful?