# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English version of the page.

# Interval Test Dynamic

Determine if signal is in specified interval

• Library:
• Simulink / Logic and Bit Operations

## Description

The Interval Test Dynamic block outputs true (`1`) if the input is between the values of the external signals up and lo. The block outputs false (`0`) if the input is outside those values. To control how the block handles input values that are equal to the signal lo or the signal up, use the Interval closed on left and Interval closed on right check boxes.

## Ports

### Input

expand all

Upper limit of interval, specified as a scalar, vector, matrix, or N-D array.

#### Limitations

When the input signal is an enumerated type, the up and lo signals must be of the same enumerated type.

Data Types: `single` | `double` | `int8` | `int16` | `int32` | `uint8` | `uint16` | `uint32` | `Boolean` | `fixed point` | `enumerated`

Input signal, specified as a scalar, vector, matrix, or N-D array.

#### Limitations

When the input signal is an enumerated type, the up and lo signals must be of the same enumerated type.

Data Types: `single` | `double` | `int8` | `int16` | `int32` | `uint8` | `uint16` | `uint32` | `Boolean` | `fixed point` | `enumerated`

Lower limit of interval, specified as a scalar, vector, matrix, or N-D array.

#### Limitations

When the input signal is an enumerated type, the up and lo signals must be of the same enumerated type.

Data Types: `single` | `double` | `int8` | `int16` | `int32` | `uint8` | `uint16` | `uint32` | `Boolean` | `fixed point` | `enumerated`

### Output

expand all

Output signal indicating whether the input values fall within the specified interval. You can specify the Output data type as `boolean` or `uint8`.

Data Types: `uint8` | `Boolean`

## Parameters

expand all

When you select this check box, the value of the signal connected to the up input port is included in the interval for which the block outputs true (`1`).

#### Programmatic Use

 Block Parameter: ` IntervalClosedRight` Type: character vector Values: `'on' | 'off'` Default: `'on'`

When you select this check box, the value of the signal connected to the lo input port is included in the interval for which the block outputs true (`1`).

#### Programmatic Use

 Block Parameter: ` IntervalClosedLeft` Type: character vector Values: `'on' | 'off'` Default: `'on'`

Specify the output data type as `boolean` or `uint8`.

#### Programmatic Use

 Block Parameter: `OutDataTypeStr` Type: character vector Values: `'boolean' | 'uint8'` Default: `'boolean'`

## Block Characteristics

 Data Types `double` | `single` | `Boolean` | `base integer` | `fixed point` | `enumerated` Multidimensional Signals `No` Variable-Size Signals `No`