Engee documentation

Interval Test

Determines whether the signal is in the specified range.

blockType: Interval Test

Path in the library:

/Basic/Logic and Bit Operations/Interval Test

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

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

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

Bool, UInt8

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

true (switched on)

Program usage name

IntervalClosedRight

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

0.5

Program usage name

uplimit

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

true (switched on)

Program usage name

IntervalClosedLeft

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

-0.5

Program usage name

lowlimit

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

Bool | UInt8

Default value

Bool

Program usage name

OutDataTypeStr

Tunable

No

Evaluatable

No

Additional options

C code generation: Yes