MultiSum
Sum of Reals: y = k[1]*u[1] + k[2]*u[2] + ... + k[n]*u[n]
Library
Modelica/Blocks/Math
Description
This blocks computes the scalar Real output "y" as sum of the elements of theReal input signal vector u:
y = k[1]*u[1] + k[2]*u[2] + ... k[N]*u[N];
The input connector is a vector of Real input signals.When a connection line is drawn, the dimension of the inputvector is enlarged by one and the connection is automaticallyconnected to this new free index (thanks to theconnectorSizing annotation).
The usage is demonstrated, e.g., in exampleModelica.Blocks.Examples.RealNetwork1.
If no connection to the input connector "u" is present,the output is set to zero: y=0.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_nu | nu | Number of input connections | Scalar | |
mo_k | k | Input gains | Vector |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_significantDigits | significantDigits | Number of significant digits to be shown in dynamic diagram layer for y | 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 |
---|---|---|---|---|
u | implicit | input | 1 | |
y | implicit | output | 1 |