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 Sum

Library

RT-EVENTS Math Operations

Block

Description

The RTE Sum blocks add or subtract inputs. This block can add or subtract a scalar or vector value. You specify the operations of the block with the List of Signs parameter.

Plus (+) and minus (-) characters indicate the operations to be performed on the inputs:

  • If there are two or more inputs, then the number of characters must equal the number of inputs. For example, "+-+" requires three inputs and configures the block to subtract the second (middle) input from the first (top) input, and then add the third (bottom) input.

    All nonscalar inputs must have the same dimensions.


  • If only one vector is input, then a single "+" or "-" will collapse the vector using the specified operation.

Mask

RTE Sum Mask

Parameters

List of signs

Enter as many plus (+) and minus (-) characters as there are inputs.

Maximum number of events

The maximum number of events or transitions that can occur during a single step. Over this number, events are ignored and not outputted.

Input

Input (RTE Double)

RTE Double signals to sum.

Output

Sum (RTE Double)

Summed RTE Double signal.

Characteristics

Direct Feedthrough

Yes

Sample time

Inherited and fixed discrete

Work offline

Yes

Dimensionalized

Yes

Examples

The rte_basic1.mdl model shows how to do simple operations on RTE signals. It also demonstrates how to use the RTE Sum block to perform a sum of two RTE Double signal.

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