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.

ssSampleAndOffsetAreTriggered

Determine whether a sample time and offset value pair indicate a triggered sample time

Syntax

boolean_T ssSampleAndOffsetAreTriggered(real_T st, real_T ot)

Arguments

st

The sample time.

ot

The offset time.

Returns

The Boolean value true if both st and ot are equal to INHERITED_SAMPLE_TIME. Otherwise, returns false.

Description

The Simulink® engine sets the sample time and offset pairs of a block or its ports (for port-based sample times) to INHERITED_SAMPLE_TIME if the block resides in a triggered subsystem. By invoking this macro on its sample time/offset pairs, an S-function can determine whether it resides in a triggered subsystem.

Languages

C, C++

Example

See the S-function sfun_port_triggered.c used in sfcndemo_port_triggered.

Introduced before R2006a

Was this topic helpful?