Skip to Main Content Skip to Search
Product Documentation

Interval Test - Determine if signal is in specified interval

Library

Logic and Bit Operations

Description

The Interval Test block outputs TRUE if the input is between the values specified by the Lower limit and Upper limit parameters. The block outputs FALSE if the input is outside those values. The output of the block when the input is equal to the Lower limit or the Upper limit is determined by whether the boxes next to Interval closed on left and Interval closed on right are selected in the dialog box.

Data Type Support

The Interval Test block accepts signals of the following data types:

For more information, see Data Types Supported by Simulink in the Simulink documentation.

Parameters and Dialog Box

Interval closed on right

When you select this check box, the Upper limit is included in the interval for which the block outputs TRUE.

Upper limit

The upper limit of the interval for which the block outputs TRUE.

Interval closed on left

When you select this check box, the Lower limit is included in the interval for which the block outputs TRUE.

Lower limit

The lower limit of the interval for which the block outputs TRUE.

Output data type

Select the output data type: boolean or uint8.

Characteristics

Direct Feedthrough

Yes

Scalar Expansion

Yes

Zero-Crossing Detection

No

See Also

Interval Test Dynamic

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS