Interval Test
Determines if the signal is within the specified interval.
Description
The Interval Test block returns true (1)
if the input data is between the values specified by the Lower limit and Upper limit parameters. The block returns false (0)
if the input data is outside these values. The output of the block when the input is equal to Lower limit or Upper limit is determined by whether the Interval closed on left and Interval closed on right check boxes are selected.
Ports
Parameters
Interval closed on right - switching on the upper limit value
on (by default)
| off
When you select this checkbox, the Upper limit is included in the interval for which the block outputs the value true (1)
.
Block parameter |
|
Values |
|
* By default* |
|
Upper limit - upper limit of interval
0.5 (by default)
| scalar
| vector
| matrix
The upper limit of the interval for which the block outputs the value true (1)
.
Block parameter |
|
Values |
|
* By default* |
|
Interval closed on left - lower limit value enabled
On (By default)
| Off
.
When you select this checkbox, Lower limit is included in the interval for which the block outputs the value true (1)
.
Block parameter |
|
Values |
|
By default |
|
Lower limit - lower limit of interval
-0.5 (by default)
| scalar
| vector
| matrix
The lower limit of the interval for which the block outputs the value true (1)
.
Block parameter |
|
Values |
|
* By default* |
|
Output data type - output data type
Bool (by default)
| UInt8
Specify the output data type as Bool
or UInt8
.
Block parameter |
|
Values |
|
By default |
|