Skip to content
Blocks.Add.md

Blocks.Add ​

This component extends from SI2SO

Usage ​

TranslatedComponents.Blocks.Add(k1=1, k2=1)

Parameters: ​

NameDescriptionUnitsDefault value
k1–1
k2–1

Connectors ​

  • u1 - This connector represents a real signal as an input to a component (RealInput)

  • u2 - This connector represents a real signal as an input to a component (RealInput)

  • y - This connector represents a real signal as an output from a component (RealOutput)

Behavior ​

y(t)=k1u1(t)+k2u2(t)

Source ​

dyad
component Add
  extends SI2SO
  parameter k1::Real = 1
  parameter k2::Real = 1
relations
  y = k1 * u1 + k2 * u2
end
Flattened Source
dyad
component Add
  u1 = RealInput()
  u2 = RealInput()
  y = RealOutput()
  parameter k1::Real = 1
  parameter k2::Real = 1
relations
  y = k1 * u1 + k2 * u2
metadata {}
end


Test Cases ​

No test cases defined.

  • Examples

  • Experiments

  • Analyses