Interval Test
Determines whether the signal is in the specified range.
blockType: Interval Test
Path in the library:
|
Description
Block Interval Test returns true (1) if the input data is between the values specified by the parameters Lower limit and Upper limit. The block returns the value false (0) if the input data is outside of these values. Block output when the input signal is Lower limit or Upper limit, is determined by whether the checkboxes are set Interval closed on left and Interval closed on right.
Ports
Input
#
IN_1
—
Input signal
scalar | vector | the matrix
Details
An input signal specified as a scalar, vector, or matrix.
| Data types |
|
| Complex numbers support |
Yes |
Output
#
OUT_1
—
Output signal
scalar | vector | the matrix
Details
An output signal indicating whether the input values fall within the specified interval. You can specify Output data type How Bool or UInt8.
| Data types |
|
| Complex numbers support |
Yes |
Parameters
Main
#
Interval closed on right —
enabling the upper limit value
Logical
Details
When you check this box, Upper limit it is included in the interval for which the block outputs the value true (1).
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Upper limit —
upper limit of the interval
Scalar / array of real numbers
Details
The upper limit of the interval for which the block outputs the value true (1).
| Default value |
|
| Program usage name |
|
| Tunable |
Yes |
| Evaluatable |
Yes |
#
Interval closed on left —
enabling the lower limit value
Logical
Details
When you check this box, Lower limit it is included in the interval for which the block outputs the value true (1).
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Lower limit —
lower limit of the interval
Scalar / array of real numbers
Details
The lower limit of the interval for which the block outputs the value true (1).
| Default value |
|
| Program usage name |
|
| Tunable |
Yes |
| Evaluatable |
Yes |
#
Output data type —
type of output data
Bool | UInt8
Details
Specify the type of output data as Bool or UInt8.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |