ssSampleAndOffsetAreTriggeredOrAsync
Determine whether a sample time and offset value pair indicate a triggered or asynchronous sample time
Syntax
boolean_T ssSampleAndOffsetAreTriggeredOrAsync(real_T st, real_T ot)
Arguments
st
The sample time.
ot
The offset time
Returns
The Boolean value true
if st
is equal to
INHERITED_SAMPLE_TIME
(-1
) and
ot
is either INHERITED_SAMPLE_TIME
(-1
) or any other negative integer.
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. The Simulink engine sets the offset time to an integer value less than
-1
when the block resides in an asynchronous function-call
subsystem. By invoking this macro on its sample time/offset pairs, an S-function can
determine whether it resides in a triggered subsystem or an asynchronous
function-call subsystem.
Languages
C, C++
See Also
Version History
Introduced in R2007a