Contents

ssGetInputPortOffsetTime

Get the offset time of an input port

Syntax

real_T ssGetInputPortOffsetTime(SimStruct *S, int_T inputPortIdx)

Arguments

S

SimStruct representing an S-Function block.

inputPortIdx

Index of the port whose offset time is required.

Returns

A real_T value indicating the offset time of the input port specified by the index inputPortIdx.

Description

Use in any routine (except mdlInitializeSizes) to determine the offset time of an input port. Use ssGetInputPortOffsetTime only if you have specified the sample times as port-based.

Languages

C, C++

Was this topic helpful?