Control Systems/Signal Flow Diagrams

From testwiki
Jump to navigation Jump to search

Template:Control Systems/Page

Signal-flow graphs

Template:Wikipedia Signal-flow graphs are another method for visually representing a system. Signal Flow Diagrams are especially useful, because they allow for particular methods of analysis, such as Mason's Gain Formula.

Signal flow diagrams typically use curved lines to represent wires and systems, instead of using lines at right-angles, and boxes, respectively. Every curved line is considered to have a multiplier value, which can be a constant gain value, or an entire transfer function. Signals travel from one end of a line to the other, and lines that are placed in series with one another have their total multiplier values multiplied together (just like in block diagrams).

Signal flow diagrams help us to identify structures called "loops" in a system, which can be analyzed individually to determine the complete response of the system.

An example of a signal flow diagram.

Forward Paths

A forward path is a path in the signal flow diagram that connects the input to the output without touching any single node or path more than once. A single system can have multiple forward paths.

Loops

A loop is a structure in a signal flow diagram that leads back to itself. A loop does not contain the beginning and ending points, and the end of the loop is the same node as the beginning of a loop.

Loops are said to touch if they share a node or a line in common.

The Loop gain is the total gain of the loop, as you travel from one point, around the loop, back to the starting point.

Delta Values

The Delta value of a system, denoted with a Greek Δ is computed as follows:

Δ=1A+BC+DE+F......+

Where:

  • A is the sum of all individual loop gains
  • B is the sum of the products of all the pairs of non-touching loops
  • C is the sum of the products of all the sets of 3 non-touching loops
  • D is the sum of the products of all the sets of 4 non-touching loops
  • et cetera.

If the given system has no pairs of loops that do not touch, for instance, B and all additional letters after B will be zero.

Mason's Rule

Mason's rule is a rule for determining the gain of a system. Mason's rule can be used with block diagrams, but it is most commonly (and most easily) used with signal flow diagrams. Template:Wikipedia

If we have computed our delta values (above), we can then use Mason's Gain Rule to find the complete gain of the system: Template:Eqn

M=youtyin=k=1NMkΔ kΔ 

Where M is the total gain of the system, represented as the ratio of the output gain (yout) to the input gain (yin) of the system. Mk is the gain of the kth forward path, and Δk is the loop gain of the kth loop.

Examples

Solving a signal-flow graph by systematic reduction : Two interlocking loops

This example shows how a system of five equations in five unknowns is solved using systematic reduction rules. The independent variable is xin. The dependent variables are x1, x2, x3, x4, xout. The coefficients are labeled a,b,c,d,e. Here is the starting flowgraph:Template:Clear

x1=xin+ex3x2=bx1+ax4x3=cx2x4=dx3xout=x4

The steps for solving xout follow.

Removing edge c from x2 to x3

x1=xin+ex3x2=bx1+ax4x3=cx2x3=c(bx1+ax4)x3=bcx1+cax4x4=dx3xout=x4

Removing node x2 and its inflows

x2 has no outflows, and is not a node of interest.

Removing edge e from x3 to x1

x1=xin+ex3x1=xin+e(bcx1+cax4)x1=xin+bcex1+acex4x2=bx1+ax4x3=bcx1+cax4x4=dx3xout=x4

Remove edge d from x3 to x4

x1=xin+acex4+bcex1x3=bcx1+acx4x4=dx3x4=d(bcx1+acx4)x4=bcdx1+acdx4xout=x4

Node x3 has no outflows and is not a node of interest. It is deleted along with its inflows.

x1=xin+acex4+bcex1x4=bcdx1+acdx4xout=x4

Removing self-loop at x1

x1=xin+acex4+bcex1x1(1bce)=xin+acex4x1=11bcexin+ace1bcex4x4=bcdx1+acdx4xout=x4

Removing self-loop at x4

x1=11bcexin+ace1bcex4x4=bcdx1+acdx4x4(1acd)=bcdx1x4=bcd1acdx1xout=x4

Remove edge from x4 to x1

x1=11bcexin+ace1bcex4x1=11bcexin+ace1bce×bcd1acdx1x4=bcd1acdx1xout=x4

Remove outflow from x4 to xout

x1=11bcexin+ace1bce×bcd1acdx1xout=bcd1acdx1

x4's outflow is then eliminated: xout is connected directly to x1 using the product of the gains from the two edges replaced.

x4 is not a variable of interest; thus, its node and its inflows are eliminated.

Eliminating self-loop at x1

x1=11bcexin+ace1bce×bcd1acdx1x1(1ace1bce×bcd1acd)=11bcexinx1=1(1bce)×(1ace1bce×bcd1acd)xinxout=bcd1acdx1

Eliminating outflow from x1, then eliminating x1 and its inflows

x1=1(1bce)×(1ace1bce×bcd1acd)xinxout=bcd1acdx1xout=bcd1acd×1(1bce)×(1ace1bce×bcd1acd)xin

x1 is not a variable of interest; x1 and its inflows are eliminated

xout=bcd1acd×1(1bce)×(1ace1bce×bcd1acd)xin

Simplifying the gain expression

xout=bcdbce+acd1xin

Solving a signal-flow graph by systematic reduction: Three equations in three unknowns

This example shows how a system of three equations in three unknowns is solved using systematic reduction rules. The independent variables are y1, y2, y3. The dependent variables are x1, x2, x3. The coefficients are labeled cjk. The steps for solving x1 follow:Template:Clear

Electrical engineering: Construction of a flow graph for a RC circuit

This illustration shows the physical connections of the circuit. Independent voltage source S is connected in series with a resistor R and capacitor C. The example is developed from the physical circuit equations and solved using signal-flow graph techniques. Polarity is important:

  • S is a source with the positive terminal at N1 and the negative terminal at N3
  • R is a resistor with the positive terminal at N1 and the negative terminal at N2
  • C is a capacitor with the positive terminal at N2 and the negative terminal at N3.

The unknown variable of interest is the voltage across capacitor C.

Approach to the solution:

  • Find the set of equations from the physical network. These equations are acausal in nature.
    • Branch equations for the capacitor and resistor. The equations will be developed as transfer functions using Laplace transforms.
    • Kirchhoff's voltage and current laws
  • Build a signal-flow graph from the equations.
  • Solve the signal-flow graph.

Branch equations

The branch equations are shown for R and C.

Resistor R (Branch equation BR)

The resistor's branch equation in the time domain is:

VR(t)=RIR(t)

In the Laplace-transformed signal space:

VR(s)=RIR(s)

Capacitor C (Branch equation BC)

The capacitor's branch equation in the time domain is:

VC(t)=QC(t)C=1Ct0tIC(τ)dτ+VC(t0)

Assuming the capacitor is initially discharged, the equation becomes:

VC(t)=QC(t)C=1Ct0tIC(τ)dτ

Taking the derivative of this and multiplying by C yields the derivative form:

IC(t)=dQ(t)dt=CdVC(t)dt

In the Laplace-transformed signal space:

IC(s)=VC(s)sC

Kirchhoff's laws equations

Kirchhoff's Voltage Law equation KVL1

This circuit has only one independent loop. Its equation in the time domain is:

VR(t)+VC(t)VS(t)=0

In the Laplace-transformed signal space:

VR(s)+VC(s)VS(s)=0

Kirchhoff's Current Law equations KCL1,KCL2,KCL3

The circuit has three nodes, thus three Kirchhoff's current equations (expresses here as the currents flowing from the nodes):

IS(t)+IR(t)=0(KCL1)IC(t)IR(t)=0(KCL2)IS(t)IC(t)=0(KCL3)

In the Laplace-transformed signal space:

IS(s)+IR(s)=0(KCL1)IC(s)IR(s)=0(KCL2)IS(s)IC(s)=0(KCL3)

A set of independent equations must be chosen. For the current laws, it is necessary to drop one of these equations. In this example, let us choose KCL1,KCL2.

Building the signal-flow graph

We then look at the inventory of equations, and the signals that each equation relates:

Equation Signals
BC VC,IC
BR VR,IR
KVL1 VR,VC,VS
KCL1 IS,IR
KCL2 IR,IC

The next step consists in assigning to each equation a signal that will be represented as a node. Each independent source signal is represented in the signal-flow graph as a source node, therefore no equation is assigned to the independent source VS. There are many possible valid signal flow graphs from this set of equations. An equation must only be used once, and the variables of interest must be represented.

Equation Signals Assigned signal node
BC VC,IC IC
BR VR,IR VR
KVL1 VR,VC,VS VC
KCL1 IS,IR IS
KCL2 IR,IC IR

The resulting flow graph is then drawn

The next step consists in solving the signal-flow graph.

Using either Mason or systematic reduction, the resulting signal flow graph is:

Mechatronics example

Angular position servo and signal flow graph. θC = desired angle command, θL = actual load angle, KP = position loop gain, VωC = velocity command, VωM = motor velocity sense voltage, KV = velocity loop gain, VIC = current command, VIM = current sense voltage, KC = current loop gain, VA = power amplifier output voltage, LM = motor inductance, VM = voltage across motor inductance, IM = motor current, RM = motor resistance, RS = current sense resistance, KM = motor torque constant (Nm/amp) , T = torque, M = momment of inertia of all rotating components α = angular acceleration, ω = angular velocity, β = mechanical damping, GM = motor back EMF constant, GT = tachometer conversion gain constant,. There is one forward path (shown in a different color) and six feedback loops. The drive shaft assumed to be stiff enough to not treat as a spring. Constants are shown in black and variables in purple.

Template:Control Systems/Nav