Professional Documents
Culture Documents
• Transfer Functions
• Graphical Representation
1
Transfer Function
• Take the z-transform of the linear difference equation to obtain
Y (z) = bn E(z) + bn−1 z −1 E(z) + · · · + b0 z −n E(z)
−an−1 z −1 Y (z) − · · · − a0 z −n Y (z)
bn +bn−1 z −1 +···+b0 z −n
⇒ Y (z) = 1+an−1 z −1 +···+a0 z−n E(z) = G(z)E(z)
z−1
• Exercise: given the transfer function G(z) = (z−2) 2 , what is the
Time-Delay Element
• Consider a simple LTI discrete-time system whose output y(k) is
obtained from the input e(k) by a delay of one time step:
2
Series Connection of Time Delay Elements
Simulation Diagram
• Simulation diagram is a graphical representation of
systems consisting of basic elements of operations:
– Time-delay elements
– Summation
– Multiplication by constant
• Example:
y(k) = 2e(k) − e(k − 1) − y(k − 1)
can be represented by a simulation diagram:
3
Example
y(k) − 4y(k − 1) + 3y(k − 2) = e(k − 1) − 2e(k − 2)
Simulation diagram:
4
Flow Graphs
• Flow graph is an alternative graphical representation of systems
• Basic elements are
– Nodes: representing signals
– Branches: directed line segment connecting nodes, each with a gain
• At each node, signals of all incoming branches are summed and the
result is transmitted to all outgoing branches
• Example:
Previous Example
y(k) = 2e(k) − e(k − 1) − y(k − 1)
Simulation diagram:
Flow graph:
5
Mason’s Formula
Determinant of A Graph
∆=1- (sum of all individual loop gains)
+ (sum of gain products of all two non-touching loops)
- (sum of gain products of all three non-touching loops)
+…
Example:
6
Application of the Mason’s Formula
Example
7
Another Example
Transfer function
• State-Variable Model
8
External vs Internal Models
• The transfer function representation is an input-output
(I/O, or external) representation
State-Variable Model
Single Input Single Out (SISO) LTI Systems:
The output y(k), k=0,1,… can be uniquely determined from the input e(k), k=0,1,…,
and the initial condition x(0)
9
Example
Consider the system y(k) = 0.5e(k − 2) + 2y(k − 1) − y(k − 2)
or equivalently y(k + 2) = 0.5e(k) + 2y(k + 1) − y(k)
State variables: x1 (k) = y(k), x2 (k) = y(k + 1)
x1 (k) y(k)
in vector form: x(k) = = ∈ ℜ2
x2 (k) y(k + 1)
0 1 0
System evolution becomes: x(k + 1) = x(k) + e(k)
−1 2 0.5
10
Previous Example
System y(k + 2) = 0.5e(k) + 2y(k + 1) − y(k)
State-variable model 0 1 0
x(k + 1) = x(k) + e(k)
−1 2 0.5
y(k) = 1 0 x(k)
Transfer function G(z) = C[zI − A]−1 B + D =?
• Find y(k) for given input e(k) and initial state x(0)
• Recursive solution:
k−1
x(k) = Ak x(0) + j=0 Ak−1−j Be(j)
11
Obtaining State-Variable Model
From Transfer Functions
• Given a general transfer function
bn +bn−1 z −1 +···+b0 z −n bn z n +bn−1 z n−1 +···+b0
G(z) = 1+an−1 z −1 +···+a0 z −n
= z n +an−1 z n−1 +···+a0
• General procedure
– Draw a simulation diagram of the system (many choices)
– Assign a state variable to each time delay element’s output
– Write the state equation, and the output equation from the diagram
12
Example
2z −1 2z
G(z) = 1−2z −1 +z −2 = z 2 −2z+1
13
Controller Canonical Form:
Flow Graph
Exercise: Check the transfer function from E(z) to Y(z) by Mason’s Formula
14
Example
1
G(z) = (z−1)(z−2)
15
Alternative State Variable Model (II)
1 1 1
G(z) = (z−1)(z−2)
= z−2
− z−1
Exercise
State-variable model:
16