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 Remove

Library

RT-EVENTS Math operations

Block

Description

The RTE Remove block removes N pulses of an RTE Boolean-type signal. The deletion is repeated at every cycle of M pulses.

Here is a small example where the parameters N and M are respectively 2 and 4.

Behaviour of the RTE Remove block

The RTE Remove block enables you to:

  • Define upper and lower limits on the integral
  • Define a trigger type
  • Define an offset
  • Reset (or restart) the cycle

Defining Trigger Type

The RTE Remove block counts pulses each time an edge of the selected type occurs. By selecting a rising trigger, high pulses will be removed from the inputs. By selecting a falling trigger, low pulses will be removed from the inputs.

Defining an offset

The RTE Remove block allows the user to choose which pulses should be removed from the input signal. The offset parameter determines an offset in pulses from the beginning of the cycle where we must remove pulses.

Resetting the cycle

The RTE Remove block determines which pulses it should remove relative to the first pulse of a cycle. The external reset signal can reset the internal counter that determines the beginning of a cycle. Each time a specified edge occurs on the trigger input signal, the counter is reset to zero. The reset can be performed on the rising edge, falling edge, or either.

Mask

RTE Remove Mask

Parameters

Trigger type

Determines the kind of edge used to count pulses

Number of pulses to remove

The number of pulses to remove at each cycle

Number of pulses by cycle

The number of pulses to complete a cycle

Offset

Relative offset to the beginning of the cycle where the pulses are removed

External Reset

Edge type used to reset the cycle

Maximum Number of events

The maximum number of events or transitions that can occur during a single step. Over this number, events are skipped

Input

Inputs (RTE Boolean)

RTE Boolean signals (or pulse waveform) to modify

External Reset (Double)

Signal use to reset a cycle

Output

Output (RTE Boolean)

Modified RTE Boolean signal

Characteristics

Direct Feedthrough

Yes

Sample time

Inherited and fixed discrete

Work offline

Yes

Dimensionalized

Yes

Example

The rte_encoder.mdl model demonstrates how to use RT-EVENTS blocks to simulate an incremental encoder connected to a rotating object. This example also shows how to use blocks of the library to insert fault, to filter noise and to measure some characteristics of RTE Boolean signal.

The RTE Insert block is very similar to the RTE Remove block and is used to insert faults in the generated pulse of the encoder.

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323