Add
Output the sum of the two inputs
Library
Modelica/Blocks/Math
Description
This blocks computes output y as sum of thetwo input signals u1 and u2:
y = k1*u1 + k2*u2;
Example:
parameter: k1= +2, k2= -3 results in the following equations: y = 2 * u1 - 3 * u2
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_k1 | k1 | Gain of input signal 1 | Scalar | |
mo_k2 | k2 | Gain of input signal 2 | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u1 | implicit | Connector of Real input signal 1 | input | 1 |
u2 | implicit | Connector of Real input signal 2 | input | 2 |
y | implicit | Connector of Real output signal | output | 1 |