Engee documentation

Interval Test Dynamic

Determines whether the signal is in the specified range.

blockType: Interval Test Dynamic

Path in the library:

/Basic/Logic and Bit Operations/Interval Test Dynamic

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

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

Complex numbers support

Yes

# u — Input signal
scalar | vector | the matrix

Details

An input signal specified as a scalar, vector, or matrix.

Data types

Bool, UInt8

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

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

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

Bool, UInt8

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

true (switched on)

Program usage name

IntervalClosedRight

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

true (switched on)

Program usage name

IntervalClosedLeft

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

Bool | UInt8

Default value

Bool

Program usage name

OutDataTypeStr

Tunable

No

Evaluatable

No

Additional options

C code generation: Yes