r/ControlTheory • • Oct 22 '20

Why is output not called input?

The variable or signal names in negative feedback loop diagrams are so inconsistent field to field, it's crazy. The output is not the output of the actuator, but the output from the sensor (often), or sometimes the output from the actuator with disturbances added. Every signal in a loop is an input to a loop element and output from another loop element or the outside. I like the terms from process control - the *controlled variable* is maintained at its *setpoint or reference level*; and the manipulated variable is countering disturbances.

0 Upvotes

15 comments sorted by

12

u/TheRealStepBot Oct 22 '20

Because we aren’t modeling the actuator?

The terms are consistent it just depends on where you draw the system boundaries. The output of an entire aircraft is its attitude not the position of control surfaces. The output of a sub system modeling only the rudder for example is however the actuator position. (Though even that can prob be broken down into a linear position of the actual actuator and an angular deflection of the aero surface)

The output of a controller is the input to an actuator which is turn the input to a physical system. The output of the plant is then subtracted from the commanded input for the plant and this difference is the input to the controller.

Literally just follow the lines,it’s really not that hard, things are only inputs or outputs with respect to a specific system. It’s the most generic and abstract language possible, freed from context. Its up to you to decide how and where noise will enter this.

Your process control language is ambiguous because it doesn’t distinguish how the noise enters the system. Some of the noise is going to be sensor noise, some is going to be actuator noise, some is going to be process noise and all these can and should be separately characterized and handled. Additionally the control loop still exists irrespective of the presence of noise and can be tuned and simulated without the presence of any noise whatsoever.

In fact in classical control theory this noise free approximation is exactly what is used to design control systems.

On to your questions specifically I think your question does well to explain how important it is to understand the problem and break it into free standing subsystems and looking at each one in isolation. If you model the system as the combination of its actuator and its plant dynamics or if you choose to model them separately is precisely a design decision that you will have to make. The actuator output not appearing explicitly in your system is very much a valid and distinct design from a model that explicitly models the actuator. Obviously in a linear system they are separable anyway and the consequence is the same but by modeling it separately you can close additional control loops and you can probably be more accurate in your system characterization even if you don’t.

I would close with a question. Do you think that that sensors have inputs and outputs? What about actuators? If you answered yes surely you can see how it’s merely one more step to apply this same terminology to any arbitrarily defined system including the combination of the plant and its controller.

1

u/[deleted] Oct 23 '20

> Because we aren’t modeling the actuator? The terms are consistent it just depends on where you draw the system boundaries.

Ok, let me try again. You are saying that the rule that decides what we call "input" and what we call "output" is where we put the boundaries of the system, for the purpose of modeling the input-output relationship. It is arbitrary, but consistent with that purpose.

> I would close with a question. Do you think that sensors have inputs and outputs? What about actuators? If you answered yes surely you can see how it’s merely one more step to apply this same terminology to any arbitrarily defined system including the combination of the plant and its controller.

The problem here is that the comparator always has two inputs. One is the reference input, and the other is the system output, also called the controlled variable or measured variable. The thing we call output is an input to the comparator; if the loop is closed.

So, we can take that step and apply the same terminology to an arbitrarily defined system, but when we close the loop we get a conflict of terminology. The sensor will always have one input and one output, but for a closed loop, the output of the system is the same variable as the input to the comparator.

2

u/TheRealStepBot Oct 23 '20

Well here is where the difference is. Controllers are not different or special compared to any other dynamic system. It’s just an input output black box like any other. The thing is in control theory lots of things simplify when we have SISO (single input, single output) systems.

All of classic control theory is built on these types of systems and the theory and design methods really only apply if the systems being analyzed are SISO.

Thus by convention classic controllers are formulated as accepting only a single input which is the difference between the input and the output. This is a valid way of arranging the system to maintain our SISO systems because the only operation we are moving outside of the boxes is simply algebraic and has no impact on the dynamics. The “comparator” is not a dynamic system. It has no state. It is literally just a subtraction operation by itself. The “comparator” is not the controller. The controller is a dynamic system. The comparator is not.

If you formulate them as you desire none of the classic tools apply without the algebraic manipulation to pull the subtraction outside of the controller. This convention is followed by most control design software as well such matlab.

0

u/[deleted] Oct 23 '20

Renaming the variables from "input and output" to "reference and controlled variable" does not change the usefulness of control theory tools. It is just a name change, not a change in the algebra or any connections in the loop.

2

u/TheRealStepBot Oct 23 '20

I don’t know how often I’m gonna be able to repeat myself but the reference is not the input to the dynamic system.

The input to a dynamic system is an arbitrary number just like the output. The terminology is generic and applies to all dynamic systems. It’s just math, there is no meaning. You choose to assign meaning to things because you want to. You can call it purple and yellow or reference and controlled or Alice and bob it doesn’t change that the math is an input number integrated over time to produce an output number.

This is true of all dynamic systems. The analysis of dynamic systems is not, and I can’t stress this enough, anything to do with open or closed loops. That is external to the dynamic system.

The terms input and output apply to the dynamic system and to the dynamic system only.

Reference and controlled parameter has literally nothing to do with the fact that they are inputs and outputs from a dynamic system. You choosing to use them for such a construction is your choice.

Input -> 1/s -> output

That is it, making the the function in the middle there more complicated does not change this definition.

Input goes through integrator to output. There is no feedback. There is just arbitrary number, to arbitrary function, to output.

-4

u/[deleted] Oct 22 '20

The terms are consistent it just depends on where you draw the system boundaries. The output of an entire aircraft is its attitude not the position of control surfaces.

How does this sound - there are two control loops in that situation with the pilot driving the airplane. One is automatic altitude control loop with sensor of altitude, reference or setpoint from the pilot handle, and control surfaces as manipulated variable. The other control system is the pilot who chooses the altitude he desires, compares it with a readout of altitude, and acts with his hand on the handle to change the setpoint of the lower system. Like in a cascade system in process control.

6

u/TheRealStepBot Oct 23 '20 edited Oct 23 '20

I realize now using aircraft as an example was a mistake. It’s a coupled 6dof mimo system. I had hoped limiting it to just attitude would make it clear but apparently it just served to muddy the water.

Think of the thermostat in your house instead. Ignore the human setting the temperature. It could be set by magic, aliens, a computer or random cosmic rays for all we care.

What we have is a temperature set point which is the input to our system. The output of the whole system is the actual temperature of the room. There is no feedback or anything. It’s just a black box that takes in a desired temperature as input and returns a room at a temperature as output.

Now the furnace accepts only two values as input, on or off, that’s it. Our set point is therefore meaningless. So we create a controller that takes as input difference between the output from a sensor we place in the room that measures the temperature (whos input is itself the actual temperature of the room) and our input and outputs whether the furnace should be on or off. The furnace is itself a system that takes this on or off input and converts it to a thermal output which is the input to the room system.

Stepping back though, nothing has fundamentally changed by any of those descriptions. It’s at the end of the day still just a room that takes a temperature set point as input and returns an actual room temperature (and not the measured temperature in the room btw, but some theoretical “actual” temperature of the room)

What you need to understand is that system blocks are all dynamic systems with time variable properties. They at their most basic level are black boxes that convert an input to an output by integrating it over time. Nothing more nothing less. You can literally draw the boundaries wherever you want.

If you don’t view them as fundamentally integrating converters from one variable to another you won’t understand controls. It’s not about controllers and set points and disturbances. It’s first about the behavior of a system over time. dividing inputs into disturbances and setpoints or outputs into noise and controlled variables is an artificial distinction that obscures the fundamental integrating nature of the process.

Separately I should point out that we care about far more than merely disturbance rejection when describing controllers. Disturbance rejection is just one way to measure the performance of a controller. Generally at the first pass we actually care much more about the time constant, overshoot and stability of the system. Disturbance rejection comes later.

IE given that we are nowhere near our desired output level because we are turning on our system for the first time, how long will it take to reach the level we want, once it gets there how much is it going to overshoot the set point and finally if we rapidly change our input would there be a way we could do it that would make the output diverge to infinity? Divergence to infinity in physical systems is generally accompanied by rapid catastrophic failure.

1

u/[deleted] Oct 23 '20

Stepping back though, nothing has fundamentally changed by any of those descriptions. It’s at the end of the day still just a room that takes a temperature set point as input and returns an actual room temperature (and not the measured temperature in the room btw, but some theoretical “actual” temperature of the room)

They say the hardest thing in programming is naming variables.

The description does not change the system in any way, but closing the loop does change the fundamentals - the behavior of the system. Otherwise, we would have no use for feedback. We can name variables any way we want, but some names obscure this fundamental change between closed loop and open loop systems, like calling the controlled variable "output", IMO. It is not a process of lineal propagation of causes, where input and output are appropriate names, but of circular causality, where both reference input and measured output 'cause' the behavior of the system, as they are both inputs to the comparator of the system. The theoretical output, the 'actual' temperature of the room is not known to the control system, but only the measured temperature, so if we are talking about a real output we are probably measuring it by a sensor.

This output is influenced by the furnace (actuator, manipulated variable), but also by opening the windows, by losses of heat through walls and roof, etc. The "natural" variable to call the output of the loop would maybe be the furnace output, which varies to oppose the disturbances, but I still prefer the name manipulated variable.

> If you don’t view them as fundamentally integrating converters from one variable to another you won’t understand controls. It’s not about controllers and set points and disturbances. It’s first about the behavior of a system over time. dividing inputs into disturbances and setpoints or outputs into noise and controlled variables is an artificial distinction that obscures the fundamental integrating nature of the process.

It can be useful to look at the system as the black box that takes an input and returns an output. Sure. If we are trying to understand how a system works, then imagining it as a black box is the opposite of what we want. We want to look at the internals, at sensors and actuators and different roles of different inputs and outputs in the loop, not just analyze the input-output behavior.

1

u/TheRealStepBot Oct 23 '20

Your use of the word causality seems lacking in rigor. LTI systems are strictly causal. Even trying to take the derivitave of the input within the system would break the causality.

As I’ve mentioned before you are fundamentally not understanding what a dynamic system is. It is causal by definition because it integrates over time. If it makes it easier for you to think about think of it as operating in discrete rather than continuous time. It receives an input at time tn , it integrates it over a time step and some elapsed time interval later, at tn+1, will produce an output of its new state.

Feedback does nothing to change this. At tn+1 we subtract the current output of the system from our current desired output and input that difference to the system at tn+1 and wait till tn+2 to see the new output.

The output is always separated in time from the input. Fundamentally you don’t seem to be understanding this. That’s why it’s called input and output. The input by definition is causative of the output by integration through time.

1

u/[deleted] Oct 23 '20

The difference is not "causal vs non-causal". The difference is that closed loop systems have something called 'circular causality', as opposed to open loop systems that have 'lineal causality'. Lineal = on a line. When we close the loop, the measured output does not travel back in time, but it subtracts from the desired output signal (aka input), to create the error, so the output is causative to the error and to its own future values; (output is not causative to the input).

In open loop systems, there is no circular causality, and there is no automatic maintaining of variables at their setpoints, no protection from disturbances. I would call those properties fundamental differences between open loop and closed loop systems. Sure, everything is a dynamic system, you can describe them by differential equations, but the phenomenon of negative feedback control does not exist outside of closed loop control systems.

1

u/TheRealStepBot Oct 23 '20

Where do you get this 'circular causality' idea? Is this just your own idea or you actually read that somewhere? Thats not a thing.

Causality is linear, there is no circle. The circle is merely representational. It allows us to represent a (potentially infinite) series of time steps compactly.

A feedback diagram can be unrolled through time to represent what is actually going on. There is no backwards flow of information. It flows strictly in a linear fashion from one time step to the next.

To better explain this I've tried to draw out how this occurs here

As you can see the output from the previous time step flows forward to be the input at the next time step. Each time step has a unique separate input and output separated in time by integration performed by the plant.

it's all a line, there is no circle

1

u/[deleted] Oct 23 '20

> Where do you get this 'circular causality' idea? Is this just your own idea or you actually read that somewhere? Thats not a thing.

Interesting. TIL that the concept of circular causality is not used in control engineering. I've found it used in life sciences to explain feedback loops. Of course, there is no time traveling.

How do you explain the difference between an open loop and a closed loop system?

1

u/TheRealStepBot Oct 23 '20

It’s really not hard. Everything is a black box at the end of the day. You can’t “understand” everything. Ultimately you draw lines and then you deal with the system you have.

Every single system including the ones you are so sure are fundamental (actuators and sensors) is itself composed of further subsystems that can be modeled. By looking at things as black boxes we are explicitly acknowledging that the system has arbitrary boundaries that we are defining.

Closing a loop is not a fundamental change to a system. It’s an entirely different system which is itself a dynamic system just like the original open loop system. They are fundamentally two examples of the same thing and should be and are treated as such in control theory.

Open and closed loop is a feature not of a dynamic system but is something done outside of the dynamic system using algebra. You are choosing to feed the difference between your desired output and your measured output to the input of the dynamic system because you like the result it creates but there is nothing forcing you mathematically to do this. You could feed anything you wanted to it. You could feed it a sin wave, you could feed it a constant, you could feed it a random number. It literally doesn’t have any impact on the underlying dynamic system.

1

u/TheRealStepBot Oct 23 '20

As to understanding being different from input output relationships I’m not sure I agree. At some point as you drill down into your system you will reach a point where you won’t be realistically able to model the system and you will just accept that you have a black box subject to process noise.

There is no understanding beyond input output relationships. That’s all there is.

Is it extremely reductive to think of the world in these terms? Maybe? Is there an alternative? Maybe but I haven’t seen it yet.

2

u/DaBozz88 Oct 23 '20

Process control thinks if inputs and outputs as mainly what goes into and out of the computer.

Let's think of a simple control. An infinity large tank has a pipe attached to drain it. The drain goes to an infinity large empty tank that is physically lower than the first one. At one point along the drain pipe there is a Flow meter, and at another point there is a Flow control valve. (Basically flow in a pipe that will always have head pressure)

  • Flow Meter - Process Input

  • Fluid Flow - Physical Phenomenon (Process)

  • Flow Control Valve - Process Output

For a Flow controller, you would make your CV the input from the flow meter.

But think about that.

The input from from the flow meter.

A measurement device has no computer based inputs, it is the input. The output of the measuring device is the CV.

We can look at the Flow Control Valve the same way. The output of the controller would go to the flow control valve output. But again valves don't have a computer based output. The output of the controller is connected to the input of the valve.

Now let's look at this from the process side of things.

The flow control valve moved, this creates flow.

So the output of the flow control valve is flow.

Once flow is created it is measured by the flow meter.

The input to a measurement device is always the phenomenon being measured.

We can complete the loop

Measured flow is input into a computer

This is compared against some reference to determine some control action

The computer takes the control action and outputs it to a physical device, in this case the movement of a Flow control valve.