trnsfer function generator

Download Trnsfer Function Generator

Post on 06-Jan-2016

7 views

Category:

Documents

0 download

Embed Size (px)

DESCRIPTION

DESCRIPTION OF TRANSFER FUNCTION GENERATOR

TRANSCRIPT

  • Transfer Function Generator

    Christos Bohoris BEng. Electrical and Electronic Engineering

  • 2

    Table of Contents Table of Contents.............................................................................................................................2 PROJECT SPECIFICATION.................................................................................................4 Summary..........................................................................................................................................5 Chapter 1 - Control Project............................................................................................................7

    1.1 Introduction...........................................................................................................................7 1.2 System Requirements ..........................................................................................................7 1.3 Code Implementation...........................................................................................................7

    Chapter 2 - Basic Graph Design .................................................................................................11 2.1 General................................................................................................................................11 2.2 Theory - Calculating Graph data ......................................................................................11 2.3 Relationships of Class CGraph........................................................................................13 2.4 Declaration of Class CGraph ...........................................................................................14 2.5 Implementation of Class CGraph ....................................................................................15

    Chapter 3 - Bode Plots.................................................................................................................23 3.1 General................................................................................................................................23 3.2 Theory - Bode Plots ............................................................................................................23 3.3 Relationships of Class CBode ............................................................................................24 3.4 Declaration of Class CBode.............................................................................................25 3.5 Implementation of Class CBode.........................................................................................26 3.6 The Interface......................................................................................................................27

    Chapter 4 - Nyquist Diagrams .....................................................................................................32 4.1 General................................................................................................................................32 4.2 Theory - Nyquist Diagram.................................................................................................32 4.3 Relationships of Class CNyquist .....................................................................................32 4.4 Declaration of Class CNyquist ........................................................................................33 4.5 Implementation of Class CNyquist..................................................................................34 4.6 The Interface......................................................................................................................35

    Chapter 5 - Nichols Charts .........................................................................................................38 5.1 General................................................................................................................................38 5.2 Theory - Nichols Charts.....................................................................................................38 5.3 Relationships of Class CNichols .....................................................................................38 5.4 Declaration of Class CNichols.........................................................................................39 5.5 Implementation of Class CNichols..................................................................................40 5.6 The Interface......................................................................................................................42

    Chapter 6 - Inverse Nyquist Diagrams .......................................................................................45 6.1 General................................................................................................................................45 6.2 Theory - Inverse Nyquist Diagrams .................................................................................45 6.3 Code Implementation.........................................................................................................45 6.4 The Interface......................................................................................................................46

    Chapter 7 - Routh-Hurwitz Criteria .............................................................................................49 7.1 General................................................................................................................................49 7.2 Theory - Routh-Hurwitz Criteria .......................................................................................49 7.3 Routh-Hurwitz Criteria in Control Project .....................................................................51 7.4 The Interface......................................................................................................................52

  • 3

    Chapter 8 - Horners Method.......................................................................................................54 8.1 General................................................................................................................................54 8.2 Theory - Horners Method.................................................................................................54 8.3 Horners Method in Control Project ...............................................................................56 8.4 The Interface......................................................................................................................57

    Chapter 9 - The User Interface ...................................................................................................59 9.1 General................................................................................................................................59 9.2 Declaration of Class TCProjApp .....................................................................................59 9.3 Implementation of Class TCProjApp ..............................................................................60

    Discussion - Conclusions...............................................................................................................68 References......................................................................................................................................71 Appendix........................................................................................................................................73

    A.1 File: CP.CPP .......................................................................................................................73 A.2 File: CAPP.CPP................................................................................................................100 A.3 File: CAPP.H ....................................................................................................................118 A.4 File: CPH.TXT..................................................................................................................121

  • 4

    CARDIFF SCHOOL OF ENGINEERING

    PROJECT SPECIFICATION

    Agreed Title: Transfer Function Generator Aims and Objectives: The aim of this project is to design and develop techniques to obtain a transfer function of a system ( first or second order only ) from a block diagram and then analyze the transfer function and plot the response using C programming language.

    Supervisor 2nd Examiner Student Dr. T. Meydan Dr. J. Liu C. Bohoris

    Date: 30-10-1996

    Report Submission Date: 23-4-1997 Oral Presentation Date: 6-5-1997

  • 5

    Summary Control Project v1.0 is a powerful program that can be used to analyze a control system. Using Control Project the user can easily obtain the Bode plot, the Nyquist diagram, the Nichols chart or the inverse Nyquist diagram of a system by just entering its transfer function. Control Project also allows you to analyze a control system by using the Routh-Hurwitz Criteria or Horners method. The program was written in C++ using object-oriented techniques. It has a user friendly interface, with full keyboard and mouse support which along with an efficient help system provides an ideal tool for any user.

  • 6

  • 7

    Chapter 1 - Control Project

    1.1 Introduction The initial aim of Control project was the design of a system that would analyze a transfer funct

Recommended

View more >