Blocks.MultiSum
This component extends from PartialRealMISO
Usage
TranslatedComponents.Blocks.MultiSum(significantDigits=3, nu=0, k=fill(1, nu))
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
significantDigits | Number of significant digits to be shown in dynamic diagram layer for y | – | 3 |
nu | Number of input connections | – | 0 |
k | Input gains | – | fill(1, nu) |
Connectors
u- (RealVectorInput)y- This connector represents a real signal as an output from a component (RealOutput)
Behavior
Source
dyad
component MultiSum
extends PartialRealMISO
# Input gains
parameter k::Real = fill(1, nu)
relations
if size(u, 1) > 0
y = k * u
else
y = 0
end
endFlattened Source
dyad
component MultiSum
u = RealVectorInput()
y = RealOutput()
# Number of significant digits to be shown in dynamic diagram layer for y
parameter significantDigits::Integer(min = 1) = 3
# Number of input connections
parameter nu::Integer(min = 0) = 0
# Input gains
parameter k::Real = fill(1, nu)
relations
if size(u, 1) > 0
y = k * u
else
y = 0
end
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses