IntervalTest Block
Tests if input is within an interval [lower, upper]. Outputs 1 if inside, 0 if outside.
Open IntervalTest in BlockWerk →# IntervalTest Block
Description
Tests whether the input signal falls within a specified interval. Outputs 1 if inside, 0 if outside.
Mathematical Model
y = \begin{cases} 1, & L \le u \le U \\ 0, & \text{otherwise} \end{cases}
where L is the lower limit, U the upper limit. Inclusivity of each bound is configurable via the inclusive parameter (both, lower, upper, neither).
Parameters
lowerLimit
Lower bound of the interval.
upperLimit
Upper bound of the interval.
inclusive
Which bounds are inclusive: both, lower, upper, or neither.
trueResultMode
Type: select (Default: "constant")
True Output parameter description placeholder.
trueValue
Type: number (Default: 1)
True Constant parameter description placeholder.
falseResultMode
Type: select (Default: "constant")
False Output parameter description placeholder.
falseValue
Type: number (Default: 0)
False Constant parameter description placeholder.
Remarks
- Boolean output: Output is 1 (inside) or 0 (outside); suitable as a logical signal for Switch blocks
- Bound inclusivity: The
inclusiveparameter controls whether each bound is open or closed - Edge cases: When lower = upper, only
bothinclusive mode can produce a 1 - Performance: Trivial computational cost; no state or memory required
Examples
- Zie de ingebouwde voorbeelden in de handleiding voor een demonstratie van dit blok.
See Also
- Comparator: Single-threshold comparison
- DeadZone: Outputs zero inside band, shifted value outside