Skip to content
Blocks.Gain.md

Blocks.Gain

Usage

TranslatedComponents.Blocks.Gain(k=1)

Parameters:

NameDescriptionUnitsDefault value
kGain value multiplied with input signal1

Connectors

  • u - 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)=ku(t)

Source

dyad
component Gain
  u = RealInput()
  y = RealOutput()
  # Gain value multiplied with input signal
  parameter k::Real = 1
relations
  y = k * u
end
Flattened Source
dyad
component Gain
  u = RealInput()
  y = RealOutput()
  # Gain value multiplied with input signal
  parameter k::Real = 1
relations
  y = k * u
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses