cise302 linear control systems -...

56
CISE302 Linear Control Systems Lecture 6: Blok Diagram and Signal Flow And State Space Modeling Dr. Amar Khoukhi (Term 121)

Upload: trankiet

Post on 26-Jun-2018

223 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

CISE302 Linear Control Systems

Lecture 6:

Blok Diagram and Signal FlowAnd State Space Modeling

Dr. Amar Khoukhi

(Term 121)

Page 2: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Lecture Objectives1. To study block diagrams, their components, and their underlying

mathematics.

2. To obtain transfer function of systems through block diagram manipulation and reduction.

3. To introduce state space representation from ordinary differential equation model

4. Introduce the relation between state space and transfer function representation.

5. To introduce the signal-flow graphs.

6. To establish a parallel between block diagrams & signal-flow graphs.

7. To use Mason’s gain formula for finding transfer function of systems.

8. To introduce state diagrams.

9. To demonstrate the MATLAB tools using case studies.

Page 3: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Applications• Spring-mass-damper- Coulomb and viscous

damper cases

• RLC circuit, and concept of analogous variables

• Solution of spring-mass-damper (viscous case)

• DC motor- Field current and armature current controlled cases

• Block diagrams of the above DC-motor problems

• Feedback System Transfer

functions and Signal flow graphs

Page 4: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Reduction

• Combining blocks in a cascade

• Moving a summing point ahead of a block

• Moving summing point behind a block

• Moving splitting point ahead of a block

• Moving splitting point behind a block

• Elimination of a feedback loop

G1 G2 G3 G4

H2

H1

H3

R(s)Y(s)

++

+-

-+

Page 5: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Models

Page 6: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Models

Page 7: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Models

Original Diagram Equivalent Diagram

Original Diagram Equivalent Diagram

Page 8: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Models

Original Diagram Equivalent Diagram

Original Diagram Equivalent Diagram

Page 9: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Models

Original Diagram Equivalent Diagram

Original Diagram Equivalent Diagram

Page 10: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Models

Example 5

Page 11: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Models Example 5

Page 12: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Models

Example 6

Page 13: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function
Page 14: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Block Diagram Models

Example 7

Page 15: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function
Page 16: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

SIGNAL-FLOW GRAPHS (SFGs)

For complex systems, the block diagram method can become difficult to complete. By using the signal-flow graph model, the reduction procedure (used in the block diagram method) is not necessary to determine the relationship between system variables.

Page 17: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

SIGNAL-FLOW GRAPHS (SFGs)

Page 18: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

SIGNAL-FLOW GRAPHS (SFGs)

Page 19: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

RLC network. (a) Block diagram (b) Signal-flow graph. .

Example 9

Page 20: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Signal-Flow Graph Models

Y1 s( ) G11 s( ) R1 s( ) G12 s( ) R2 s( )

Y2 s( ) G21 s( ) R1 s( ) G22 s( ) R2 s( )

Example 10

Page 21: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Signal-Flow Graph Models

a11 x1 a12 x2 r1 x1

a21 x1 a22 x2 r2 x2

Example 11

Page 22: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space designFrom Lab Manual

Page 23: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space design

Sections 3.3 to 3.6 from Dorf TextWhat are X1 and X2 ?

Page 24: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

From Differential Equations to State Diagrams

State space design

Page 25: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space designState equation

Page 26: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space design

First order scalar ODE

Example 12

Page 27: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space designFirst order n-dimension system of ODEs

Page 28: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space design

Page 29: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space design

Page 30: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

CHARACTERISTIC EQUATIONS, EIGENVALUES, AND EIGENVECTORS

State space design

Page 31: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

CISE301_Topic 8 (c) Khoukhi 2010 31

How to solve High Order ODE

• How do solve second order ODE?

• How do solve high order ODE?

163 xxx

Page 32: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

CISE301_Topic 8 (c) Khoukhi 2010 32

The general approach to solve ODEs

4)0(;1)0(

163

xx

xxx

convert

1

4)0(

,631 12

2

2

1

Z

zz

z

z

z

solve

high order ODE convert System of first order ODE solve

Second order ODE Two first order ODEs

Example 13

Page 33: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space designExample 14

Page 34: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space designExample 14

Page 35: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space design

Page 36: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space designExample 15

Page 37: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space design

Example 16

Page 38: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

From State Diagrams to Transfer Functions

State space design

Transfer Function:

Page 39: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

State space designExample 17

Page 40: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

From State Diagrams to State and Output Equations

Page 41: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Model for G(s) of Equation (3.45). (a) Signal-flow graph. (b) Block diagram.Example 18

Page 42: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Model for G(s) of Equation (3.46) in the phase variable format. (a) Signal-flow graph. (b) Block diagram.

Example 19

Page 43: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

(a) Phase variable flow graph state model for T(s). (b) Block diagram for the phase variable

canonical form.Example 21

Page 44: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Single-loop control system.Example 22

Page 45: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

A block diagram model of an open-loop DC motor

control with velocity as the output.Example 23

Page 46: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

(a) The physical state variable signal-flow graph for the block diagram of Figure 3.17. (b) Physical state block

diagram.Example 24

Page 47: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

(a) The decoupled state variable flow graph model for the system shown in block diagram form in Figure 3.17. (b) The decoupled

state variable block diagram model.

Example 25

Page 48: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Model for the spread of an epidemic disease. (a) Signal-flow graph. (b) Block diagram model.

Example 26

Page 49: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Mason’s Gain Formula for SFG

Page 50: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Mason’s Gain Formula for SFG

Page 51: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

fig_03_32

Mason’s Gain Formula for SFG

Example 27

Page 52: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

fig_03_25

Mason’s Gain Formula for SFG

Page 53: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Figure 3-33 Signal-flow graph for Example 3-2-4.

Mason’s Gain Formula for SFG

Example 28

Page 54: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Figure 3-34 (a) Block diagram of a control system. (b) Equivalent signal-flow graph.

Application of the Gain Formula to Block Diagrams

Mason’s Gain Formula for SFGExample 29

Page 55: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Simplified Gain Formula

Mason’s Gain Formula for SFG

Page 56: CISE302 Linear Control Systems - KFUPMfaculty.kfupm.edu.sa/SE/amar/Teaching/CISE302/files/Lectures/CISE... · CISE302 Linear Control Systems Lecture 6: ... To obtain transfer function

Y s( )

R s( )

G1 G2 G3 G4 1 L 3 L 4 G5 G6 G7 G8 1 L 1 L 2

1 L 1 L 2 L 3 L 4 L 1 L 3 L 1 L 4 L 2 L 3 L 2 L 4

Mason’s Gain Formula for SFG

Example 30