Engee documentation

Interval Test

Determines if the signal is within the specified interval.

interval test

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

Input

Port_1 - input signal
scalar | vector | matrix

Input signal specified as a scalar, vector or matrix.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Output

Port_1 - output signal
scalar | vector | matrix

Output signal indicating whether the input values fall within the specified interval. You can specify Output data type as Bool or UInt8.

Output data types: Bool, UInt8.

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).

Usage in program code

Block parameter

IntervalClosedRight

Values

On | Off

* By default*

On

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).

Usage in program code

Block parameter

uplimit

Values

scalar | vector | matrix

* By default*

0.5

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).

Usage in program code

Block parameter

IntervalClosedLeft

Values

On | Off

By default

On

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).

Usage in program code

Block parameter

lowlimit

Values

scalar | vector | matrix

* By default*

-0.5

Output data type - output data type
Bool (by default) | UInt8

Specify the output data type as Bool or UInt8.

Usage in program code

Block parameter

OutDataType

Values

Bool | UInt8

By default

Bool

Additional options

C code generation: Yes