blockWeightedDifference
Block which calculates the weighted difference between an input variable and a reference parameter
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | Weight | Multiplicative weight for the associated entry | |
| Real | Target | Reference (target) parameter |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | Input signal connector | |
| Modelica.Blocks.Interfaces.RealOutput | y | Output signal connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Constant | const | ||
| Modelica.Blocks.Math.Add | add | ||
| Modelica.Blocks.Math.Gain | gain1 |