Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

RTE Relational Operator

Library

RT-EVENTS Math Operations

Block

Description

The RTE Relational Operator block performs a relational operation on its two inputs and outputs the results as an RTE Boolean-type signal. The logical operation on the inputs can be selected, e.g. one can choose among <, >, >= and <=. It should be noted that the output signal is high when the condition is true. The RTE Boolean signal contains information to allow the blocks to compensate for the discrete-time error that takes place because discrete events occur between the sampling instants.

Mask

RTE Relational Operator Mask

Parameters

Operator

The relational operator to be applied to the block inputs: <, >, <= or >=.

Maximum Number of events

The maximum number of events (or transitions) that can occur during a single step. Should be set to 1. Current block implementation only detects one transition. This field has been added to match the same structure used in other RTE blocks and to allow the user to select the number of events once this feature is implemented.

Sample Time

The time interval between samples.

Input

Inputs (Double)

Input signals to be compared.

Output

Outputs (RTE Boolean)

RTE logical signal which is high when the condition is true.

Characteristics

Direct Feedthrough

Yes

Sample time

Fixed discrete.

Work offline

Yes

Dimensionalized

Yes

Example

The rte_resetwalk.mdl model shows the difference between a compensated event-based discrete system, an uncompensated simulated event-based discrete system and a continuous system and demonstrates the accuracy of the RTE blocks compared to the equivalent discrete block.

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter