Blocks.Gain
Usage
TranslatedComponents.Blocks.Gain(k=1)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
k | Gain value multiplied with input signal | – | 1 |
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
Source
dyad
component Gain
u = RealInput()
y = RealOutput()
# Gain value multiplied with input signal
parameter k::Real = 1
relations
y = k * u
endFlattened Source
dyad
component Gain
u = RealInput()
y = RealOutput()
# Gain value multiplied with input signal
parameter k::Real = 1
relations
y = k * u
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses