Interval Test Dynamic
Determines whether the signal is in the specified range.
blockType: Interval Test Dynamic
Path in the library:
|
Description
Block Interval Test Dynamic returns true (1) if the input is between the values of the external signals up and lo. The block returns the value false (0) if the input data is outside of these values. The output of the block when the input signal is lo or up is determined by whether the checkboxes are set. Interval closed on right and Interval closed on left.
Ports
Input
#
up
—
upper limit of the interval
scalar | vector | the matrix
Details
The upper limit of the interval, given as a scalar, vector, or matrix.
| Data types |
|
| Complex numbers support |
Yes |
#
u
—
Input signal
scalar | vector | the matrix
Details
An input signal specified as a scalar, vector, or matrix.
| Data types |
|
| Complex numbers support |
Yes |
#
lo
—
lower limit of the interval
scalar | vector | the matrix
Details
The lower limit of the interval, given as a scalar, vector, or matrix.
| Data types |
|
| Complex numbers support |
Yes |
Output
#
y
—
Output signal
scalar | vector | the matrix
Details
An output signal indicating whether the input values fall within the specified interval. You can specify the Output data type parameter as 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, the value of the signal associated with the up input port is included in the interval for which the block outputs the value true (1).
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Interval closed on left —
enabling the lower limit value
Logical
Details
When you check this box, the value of the signal associated with the input port lo is included in the interval for which the block outputs the value true (1).
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
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 |