-u1u2y$(instance)Feedback Icon

Feedback

Output difference between reference in (in1) and feedback in (in2).

This component extends from SI2SO

Usage

Feedback()

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

\[ \begin{align} y\left( t \right) &= \mathtt{u1}\left( t \right) - \mathtt{u2}\left( t \right) \end{align} \]

Source

# Output difference between reference in (in1) and feedback in (in2).
component Feedback
  extends SI2SO
relations
  y = u1-u2
metadata {"JuliaSim": {"icons": {"default": "jsml://BlockComponents/Feedback.svg"}}}
end
Flattened Source
# Output difference between reference in (in1) and feedback in (in2).
component Feedback
  u1 = RealInput() [{
    "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 150, "x2": 50, "y2": 250}}}
  }]
  u2 = RealInput() [{
    "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 750, "x2": 50, "y2": 850}}}
  }]
  y = RealOutput() [{
    "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
  }]
relations
  y = u1-u2
metadata {"JuliaSim": {"icons": {"default": "jsml://BlockComponents/Feedback.svg"}}}
end

Test Cases

  • Examples
  • Experiments
  • Analyses