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 Insert

Page Content

Library

RT-Events Math Operations

Block

FIG 1: RTE Insert Block

Description

The RTE Insert block inserts N pulses in an RTE Boolean signal. The pulses are inserted between N+1 consecutives pulses of the input signal. The offset parameter determines where the pulses are inserted relative to the beginning of the cycle. The insertion is repeated at every cycle of M pulses.

The pulse width and delay parameters characterize the inserted pulses. These parameters are measured as a percentage of the last input signal period. The delay parameters are relative to the end of the last pulse.

Here is a small example where the parameters N, M, width and delay are respectively 2,4,16% and 16%.

FIG 2: Typical Example of the RTE Insert Block Behaviour

The RTE Insert block enables you to:

  • Define a trigger type

  • Define an offset

  • Reset (or restart) the cycle

Defining Trigger Type

The Insert block counts the pulses each time an edge of the selected type occurs. By selecting a rising trigger, high pulses will be inserted in the input. By selection a falling trigger, low pulses will be inserted in the input.

Defining an offset

The Insert block allows the user to choose where the pulses should be inserted in the input signal. The offset parameter determines an offset in pulses from the beginning of the cycle where the pulse are inserted.

Resetting the cycle

The Insert block determines where the pulses should be inserted relative to the first pulse of a cycle. The external reset signal can reset the internal counter that determine the beggining of a cycle. Each time an specified edge occur on the trigger input signal, the counter is reset to zero. The reset can be performed on rising edge, falling edge, or either.

Limitations

One of the limitations of this block occurs when the frequency of the input signal increases rapidly and the next rising edge of the input signal occurs before the new pulse was inserted. In this case, the input signal and the new pulse are combined with a logical AND.

Example:

In the extreme case where the time of the events of the new pulses exceeds the time of the falling edge of the next input pulse, the events are skipped.

Example:

Mask

Parameters

Trigger type

Determine the kind of edges used to count pulses (raising or falling).

Number of pulses to insert

The number of pulses to insert at each cycle.

Number of pulses by cycle

The number of pulses from the input signal, to complete a cycle.

Offset

Relative offset to the beginning of the cycle where the pulses are inserted.

Pulse width

Pulse width in percent of the input signal period.

Delay

Pulse delay in percent of the input signal period relative to the end of the pulse.

External Reset

Edge type used to reset the cycle (none, rising, falling, either).

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

Input (RTE Boolean)

RTE Boolean signal (pulse waveform) to modify

External Reset (Double)

RTE Boolean 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 characterics of RTE Boolean signal. In this example the RTE Insert block is used to insert fault in the generated pulse of the encoder.

Related Items

 

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