Feedback

Output difference between commanded and feedback input

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This blocks computes output y as difference of the commanded input u1 and the feedback input u2:

y = u1 - u2;

Example:

   parameter:   n = 2

results in the following equations:

   y = u1 - u2

Connectors (3)

u1

Type: RealInput

Description: Commanded input

u2

Type: RealInput

Description: Feedback input

y

Type: RealOutput

Used in Examples (32)

InverseModel

Modelica.Blocks.Examples

Demonstrates the construction of an inverse model

SinCosEncoder

Modelica.Blocks.Examples

Evaluation of a sinusoidal encoder

UniformNoiseProperties

Modelica.Blocks.Examples.Noise

Demonstrates the computation of properties for uniformly distributed noise

NormalNoiseProperties

Modelica.Blocks.Examples.Noise

Demonstrates the computation of properties for normally distributed noise

Continuous

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with continuous controller

ClockedWithDiscreteTextbookController

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with discrete textbook controller (period is not used in the controller)

ClockedWithDiscreteController

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with discrete controller (period is used in the controller)

ExactlyClockedWithDiscreteController

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with discrete controller and exact periodic clocks (period is used in the controller)

ClockedWithDiscretizedContinuousController

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with discretized continuous-time controller

ClockedWith_AD_DA_Effects

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with discrete controller and simulated AD and DA effects

Continuous

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with continuous-time cascade controller

SubClocked

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with clocked cascade controller where clocks are defined with sub-sampling and partitions with super-sampling

SuperSampled

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with clocked cascade controller where fastest partition is defined with a clock and slower partition is defined with super-sampling

AbsoluteClocks

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with clocked cascade controller where all partitions are defined with exact (integer) clock that need to be compatible to each other

ControlledMixingUnit

Modelica.Clocked.Examples.Systems

Simple example of a mixing unit where a (discretized) nonlinear inverse plant model is used as feedforward controller

MixingUnitWithContinuousControl

Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit

Simple example of a mixing unit where a (continuous) nonlinear inverse plant model is used as feedforward controller

Sample3

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a Sample block for Real signals with direct feed-through in the continuous-time and the clocked partition

ControlCircuit

Modelica.Electrical.Analog.Examples.OpAmps

Control circuit

IMC_withLosses

Modelica.Electrical.Machines.Examples.InductionMachines

Test example: InductionMachineSquirrelCage with losses

TestSensors

Modelica.Electrical.Polyphase.Examples

TestSensors

Modelica.Electrical.QuasiStatic.Polyphase.Examples

IMC_DOL_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase

Direct on line start of polyphase induction machine with squirrel cage

IMS_Start_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase

Starting of polyphase induction machine with slip rings

IMC_withLosses

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines

Induction machine with squirrel cage and losses

SMPM_Inverter_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase

Starting of polyphase permanent magnet synchronous machine with inverter

SMEE_Generator_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase

Electrical excited polyphase synchronous machine operating as generator

SMR_Inverter_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase

Starting of polyphase synchronous reluctance machine with inverter

LinearInductor

Modelica.Magnetic.QuasiStatic.FluxTubes.Examples

Linear inductor with ferromagnetic core

NonLinearInductor

Modelica.Magnetic.QuasiStatic.FluxTubes.Examples

Non linear inductor with ferromagnetic core

IMC_withLosses

Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines

Induction machine with squirrel cage and losses

SimpleGearShift

Modelica.Mechanics.Rotational.Examples

Simple Gearshift

DrumBoiler

Modelica.Fluid.Examples.DrumBoiler

Complete drum boiler model, including evaporator and supplementary components

Used in Components (6)

Controller

Modelica.Blocks.Examples.Noise.Utilities.Parts

Simple position controller for actuator

LimitedPI

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities

Limited PI-controller with anti-windup and feed-forward

IdealDcDc

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities

Ideal DC-DC inverter

DQCurrentController

Modelica.Electrical.Machines.Utilities

Current controller in dq coordinate system

SinCosEvaluation

Modelica.Electrical.Machines.Utilities

Evaluation of the signals of a sin-cos-resolver

Controller

Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.Utilities

P-PI cascade controller for one axis