Matlab and Simulink for Modeling and Control

Size: px
Start display at page:

Download "Matlab and Simulink for Modeling and Control"

Transcription

1 Matlab and Simulink for Modeling and Control 1 Introduction Robert Babuška (r.babuska@tudelft.nl) This text is a handout for the first MATLAB session within the course Systeem- en Regeltechniek 2. A short introduction to MATLAB is included in the beginning for those who are totally inexperienced with this software. The main focus is then on the elementary use of the Control System Toolbox for the implementation and analysis of linear time-invariant (LTI) systems. Three sets of basic tools are available: 1. General MATLAB functions for matrix algebra (*, inv, exp,... ), nonlinear functions (sin, abs,... ), data visualization (plot, stairs,... ), and data storage (save, load). Type help or demo for more details on general-purpose MATLAB functions. 2. Control System Toolbox functions and tools for the definition and analysis of linear time-invariant (LTI) systems and synthesis of controllers (tf, ss, pole, rltool, place,... ). Type help control for a list of all Control Systems Toolbox functions. 3. Simulink for the implementation and simulation of nonlinear (and of course also linear) dynamic systems. Type help simulink for more information or type simulink to open the main Simulink library. 2 Matlab basics Entering commands. Commands in MATLAB can be entered in three ways: via the Command Window, through scripts (programs stored in files with extension *.m, the so called M-files), and functions (also stored in files with extension *.m). When using the Command Window, MATLAB operates in an interpreter mode, executing the commands directly. Scripts and functions are to a certain degree precompiled (automatically, during the first call) in order to speed up the execution. For very simple ad hoc computations, it is possible to use the Command Window directly (use up and down arrows to browse through the history of previously entered commands. In all other cases (e.g., working on a project), it is much more effective to write scripts and functions to execute a desired sequence of commands (create a new file via the File menu or click on the New M-file icon and save the file in your working directory). Data types and variables. MATLAB supports all usual data types like real numbers, characters, strings, structures, cell arrays, etc. However, the most prominent feature of this package is its ability to compute with vectors and matrices. This facilitates very efficient programming of linear algebra computations, including all kinds of applications, such as filtering, signal and image processing, control, etc. Rather than using for and while loops, like in C or Pascal, it is recommended to vectorize computations as much as possible. For instance, to plot a graph of the function exp(-x) for x from 1 to 10, the C-style program would be something like: for i = 1 : 10, y(i) = exp(-i); end; plot(y); while a single MATLAB command can do the job: plot(exp(-(1:10))). To practice this way of programming, interested readers can download from Blackboard a separate document titled Simple exercises to get used to MATLAB vector and matrix notation. However, in some cases the use of for-loops is inevitable. Data handling and visualization. MATLAB has extensive capabilities for importing, processing, storing, and visualizing data. Use the functions load and save to load and save MATLAB data files (*.mat). To create plots, see functions plot, label, title, mesh, etc. 1

2 3 Entering and analyzing LTI models in Matlab Linear time-invariant systems can be entered in the state-space form (ss) or as transfer functions, either by means of the numerator and denominator coefficients (tf) or by means of the zeros, poles, and the gain (zpk). Coefficients of polynomials are entered in the descending order of the powers of s (continuous time) or z (discrete time). For instance, the polynomial A(s) = 3s 3 +2s+10 is defined as the vector: A = [ ]. Consider the transfer function G(s) = ω 2 s 2 +2ζωs+ω 2 aω s+aω (1) First, define some values for the parameters in MATLAB: w = 3; z = 0.8; a = 2; Now, the transfer function (1) can be entered by using the function tf and the product operator: G1 = tf(wˆ2,[1 2*w*z wˆ2]) G2 = tf(a*w,[1 a*w]) G = G2*G1 Note that complex systems can be defined in terms of simpler subsystems combined in parallel (operator +), series (operator *) or feedback (function feedback). The standard MATLAB operators are overloaded (redefined) for the LTI class of the Control System Toolbox such that they compute the respective combination of the linear systems (instead of addition or multiplication of scalars or matrices). Another possibility is to first define a system representing the Laplace operator s (corresponding to a differentiator) and then enter the transfer function as an algebraic expression ins(in a symbolic way): s = tf([1 0],1) G1 = wˆ2/(sˆ2 + 2*w*z*s + wˆ2) Exercise 1: Enter the above transfer functions in MATLAB. Use functions pole, zero, and damp to get information about the poles and zeros of the system and the corresponding frequencies and relative damping coefficients. Is the system stable? ConvertGto the zero-pole-gain and state-space forms (using the functions zpk and ss). Form a feedback system G c by using the function feedback with a proportional controller K p = 3. Is the relative damping of G c larger or smaller than the damping of G? 4 Time-domain and frequency-domain plots There is a variety of functions for plotting all possible responses, such as step, impulse, bode, etc. The most important ones are integrated in an LTI viewer (ltiview). As a default plot, the step response is shown. By right-clicking on the plot area, a menu pops up that allows us to choose a different plot or to compute some important characteristics, such the settling time, rise time, gain and phase margins, etc. Exercise 2: Use the LTI viewer to get the step response and impulse response for our system G. What is the settling time and the rise time? 5 Control design for a magnetic levitation system Electromagnetic levitation is used for friction-less support of high-speed trains, in bearings of low-energy motors, and other applications. The system to be controlled consists of an electromagnet which is attracted to an object made of a magnetic material. The air gap between this material and the electromagnet must be kept constant despite disturbances, such as forces acting on the train. 2

3 The goal is to design a controller that will keep the air gap at a desired value by adjusting the current through the coil (see the schematic below). This system has one control input u(t), which is the current through the electromagnet and one measured output: y(t), the airgap. A nonlinear model of this process can be derived from elementary physical laws. Through linearization, the following differential equation is obtained: ÿ(t) = ay(t) bu(t) where a > 0 and b > 0 are known positive real parameters. In the sequel, we will represent this model as a transfer function and analyze its properties, both in the open-loop and closed-loop configuration. Please, work out items a) through e) as homework preparation for the lab session. The remaining items f) and g) will be done in the lab, using Matlab and Simulink. a) Represent the above differential equation in a block diagram. 3

4 b) Derive the transfer function of the open-loop process: G(s) = Y(s) U(s) = c) Compute the poles and analyze stability of the open-loop system. p 1 = p 2 = Stability: d) Consider a proportional controller C(s) = K p, using negative feedback. Derive the closed-loop transfer function G c (s) from the reference R(s) to the output Y(s). Can this controller stabilize the system? Motivate your answer. G c (s) = Y(s) R(s) = Motivation: e) Now consider a proportional-derivative (PD) controller: C(s) = K p + K d s. Again, derive the closed-loop transfer function G c (s) from the reference R(s) to the output Y(s). Can the PD controller stabilize the system? Motivate your answer. G c (s) = Y(s) R(s) = Motivation: 4

5 f) Enter the open-loop transfer function G(s) in MATLAB. Use the following parameter values: a = 1962 and b = 0.94; Compute the poles and verify the result by comparing with your solution to item b). Create a vector containing a range of proportional gainsk p = 10, 20, 30,..., You can use the following command: Kp = -[10:10:3000] ; Compute the closed-loop transfer function and its poles for each of the gains in the vector Kp. It is convenient to implement this in a little program (MATLAB script). In this program, you can also define the values of the parameters a and b, and the command for defining the open-loop transfer function. To compute the closed-loop poles for each value of K p, you can use the following forloop (supply appropriate parameters or commands instead of the dots... ): for i = 1 : length(kp), Gc = feedback(...); p(i,:) =...; end; Plot the poles in the complex plane. 1 Note that the function plot directly works also for complex numbers. Sketch the resulting plot in the box below: Does the result obtained correspond to your analysis under item d)? For what values of K p is the closed-loop response oscillatory? K p = 1 Note that the plot of the location of closed-loop poles with respect to the controller gain is called the root-locus. The Control Systems Toolbox has special functions to plot the root locus, such as rlocus and rltool, so we do not need to do this programming ourselves. The basic idea behind, however, is the same. 5

6 g) Implement the block diagram from item a) in Simulink. Close the loop with negative feedback using an ideal PD controller C(s) = K p +K d s. One option is to use the Simulink PID Controller block which implements a realistic approximation of the PID controller. Set the Filter coefficient (N) equal to Another (better) option is to implement the PD controller as a Subsystem block (in the Commonly Used Blocks library) in which you implement the PD controller using the Derivative, Gain and Sum blocks. As a reference, use a step function with an amplitude of m. Start with the following gains: K p = , K i = 0, K d = 200. Sketch the resulting closed-loop step response in the box below: How large is the steady-state error (in % of the reference)? Verify this value by calculations in MATLAB. Hint: compute first the closed-loop transfer function by means of the function feedback, then use the function dcgain to find the stationary gain of the closed loop transfer function. e ss = Increase the proportional gain by factor 5 and simulate the closed-loop system. What is the effect on the transient response and on the steady-state error? What happens if you also increase the derivative gain? Is it possible to completely remove the steady-state error? How? Got so far? Congratulations, you are done for today! It might be a good idea to store your results on a memory stick or another medium for future reference. 6

7 6 Useful Matlab and Control Systems Toolbox Functions Creating and converting linear models tf - Create (or convert to) a transfer function model. zpk - Create (or convert to) a zero/pole/gain model. ss - Create (or convert to) a state-space model. feedback - Feedback connection of two systems. c2d - Continuous to discrete conversion. d2c - Discrete to continuous conversion. Model analysis dcgain bandwidth pole, eig zero pzmap damp ltiview step impulse lsim bode ctrb, obsv - D.C. (low frequency) gain. - System bandwidth. - System poles. - System zeros. - Pole-zero map. - Natural frequency and damping of system poles. - Response analysis GUI (LTI Viewer). - Step response. - Impulse response. - Response to arbitrary inputs. - Bode diagrams of the frequency response. - Controllability and Observability matrix. Design tools place acker sisotool rlocus rltool - MIMO pole placement. - SISO pole placement. - SISO design GUI (root locus and loop shaping techniques). - Evans root locus. - Runs the SISO design GUI set up for root locus. Data visualization and storage figure - Create figure window. clf - Clear current figure. plot - Plot data. stairs - Stair-step graph. save - Save workspace variables to disk. load - Load workspace variables from disk. Simulink Matlab trim linmod - Finds steady state parameters for a Simulink system. - Linearize a Simulink model around an operating point. 7

8 7 Appendix: nonlinear model of the electromagnetic levitation system Physical modeling. The motion of an object in a magnetic field is determined by the forces that act on it. In our case, these forces are: (i) the gravitational force, (ii) the electromagnetic force, and (iii) a disturbance force. The dynamic equation of the system is derived from the Newton s law: ÿ(t) = 1 m (F grav +F dist F R ), (2) wheremis the mass of the train,f grav = mg andf dist is an external disturbance (e.g., due to the vertical components of external forces acting on the train). The electromagnetic force is a nonlinear function of the current i through the coil and the gapy: F R = K mag i 2 (t) y 2 (t). (3) In our example, we use parameters of a small-scale model: K mag = Hm and m = 8 kg. Linearization. For the ease of notation, assume that the disturbance forcef dist = 0. The equilibrium of the nonlinear model (2) is given by: 0 = mg K mag i 2 0 y 2 0 i 0 = mg K mag y 0 Now we can choose some operating point y 0 for the gap, compute the corresponding current i 0 and linearize the right-hand side of (2) around this operating point: Defining ÿ(t) = 2K magi 2 0 my 3 0 y(t) 2K magi 0 my0 2 u(t). a = 2K magi 2 0 my 3 0 and b = 2K magi 0 my0 2, we obtain the final linearized model: ÿ(t) = ay(t) bu(t) wherea = 1962 and b = were obtained for y 0 = 0.01 m. 8

MATLAB Control System Toolbox Root Locus Design GUI

MATLAB Control System Toolbox Root Locus Design GUI MATLAB Control System Toolbox Root Locus Design GUI MATLAB Control System Toolbox contains two Root Locus design GUI, sisotool and rltool. These are two interactive design tools for the analysis and design

More information

Matlab and Simulink. Matlab and Simulink for Control

Matlab and Simulink. Matlab and Simulink for Control Matlab and Simulink for Control Automatica I (Laboratorio) 1/78 Matlab and Simulink CACSD 2/78 Matlab and Simulink for Control Matlab introduction Simulink introduction Control Issues Recall Matlab design

More information

TEACHING AUTOMATIC CONTROL IN NON-SPECIALIST ENGINEERING SCHOOLS

TEACHING AUTOMATIC CONTROL IN NON-SPECIALIST ENGINEERING SCHOOLS TEACHING AUTOMATIC CONTROL IN NON-SPECIALIST ENGINEERING SCHOOLS J.A.Somolinos 1, R. Morales 2, T.Leo 1, D.Díaz 1 and M.C. Rodríguez 1 1 E.T.S. Ingenieros Navales. Universidad Politécnica de Madrid. Arco

More information

Control System Definition

Control System Definition Control System Definition A control system consist of subsytems and processes (or plants) assembled for the purpose of controlling the outputs of the process. For example, a furnace produces heat as a

More information

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

EDUMECH Mechatronic Instructional Systems. Ball on Beam System EDUMECH Mechatronic Instructional Systems Ball on Beam System Product of Shandor Motion Systems Written by Robert Hirsch Ph.D. 998-9 All Rights Reserved. 999 Shandor Motion Systems, Ball on Beam Instructional

More information

EE 402 RECITATION #13 REPORT

EE 402 RECITATION #13 REPORT MIDDLE EAST TECHNICAL UNIVERSITY EE 402 RECITATION #13 REPORT LEAD-LAG COMPENSATOR DESIGN F. Kağan İPEK Utku KIRAN Ç. Berkan Şahin 5/16/2013 Contents INTRODUCTION... 3 MODELLING... 3 OBTAINING PTF of OPEN

More information

DCMS DC MOTOR SYSTEM User Manual

DCMS DC MOTOR SYSTEM User Manual DCMS DC MOTOR SYSTEM User Manual release 1.3 March 3, 2011 Disclaimer The developers of the DC Motor System (hardware and software) have used their best efforts in the development. The developers make

More information

System Modeling and Control for Mechanical Engineers

System Modeling and Control for Mechanical Engineers Session 1655 System Modeling and Control for Mechanical Engineers Hugh Jack, Associate Professor Padnos School of Engineering Grand Valley State University Grand Rapids, MI email: jackh@gvsu.edu Abstract

More information

G(s) = Y (s)/u(s) In this representation, the output is always the Transfer function times the input. Y (s) = G(s)U(s).

G(s) = Y (s)/u(s) In this representation, the output is always the Transfer function times the input. Y (s) = G(s)U(s). Transfer Functions The transfer function of a linear system is the ratio of the Laplace Transform of the output to the Laplace Transform of the input, i.e., Y (s)/u(s). Denoting this ratio by G(s), i.e.,

More information

Controller Design in Frequency Domain

Controller Design in Frequency Domain ECSE 4440 Control System Engineering Fall 2001 Project 3 Controller Design in Frequency Domain TA 1. Abstract 2. Introduction 3. Controller design in Frequency domain 4. Experiment 5. Colclusion 1. Abstract

More information

An Introduction to Using Simulink

An Introduction to Using Simulink An Introduction to Using Simulink Eric Peasley, Department of Engineering Science, University of Oxford version 4.0, 2013 An Introduction To Using Simulink. Eric Peasley, Department of Engineering Science,

More information

3.1 State Space Models

3.1 State Space Models 31 State Space Models In this section we study state space models of continuous-time linear systems The corresponding results for discrete-time systems, obtained via duality with the continuous-time models,

More information

Manufacturing Equipment Modeling

Manufacturing Equipment Modeling QUESTION 1 For a linear axis actuated by an electric motor complete the following: a. Derive a differential equation for the linear axis velocity assuming viscous friction acts on the DC motor shaft, leadscrew,

More information

Understanding Poles and Zeros

Understanding Poles and Zeros MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING 2.14 Analysis and Design of Feedback Control Systems Understanding Poles and Zeros 1 System Poles and Zeros The transfer function

More information

Module 2 Introduction to SIMULINK

Module 2 Introduction to SIMULINK Module 2 Introduction to SIMULINK Although the standard MATLAB package is useful for linear systems analysis, SIMULINK is far more useful for control system simulation. SIMULINK enables the rapid construction

More information

AP1 Oscillations. 1. Which of the following statements about a spring-block oscillator in simple harmonic motion about its equilibrium point is false?

AP1 Oscillations. 1. Which of the following statements about a spring-block oscillator in simple harmonic motion about its equilibrium point is false? 1. Which of the following statements about a spring-block oscillator in simple harmonic motion about its equilibrium point is false? (A) The displacement is directly related to the acceleration. (B) The

More information

Spacecraft Dynamics and Control. An Introduction

Spacecraft Dynamics and Control. An Introduction Brochure More information from http://www.researchandmarkets.com/reports/2328050/ Spacecraft Dynamics and Control. An Introduction Description: Provides the basics of spacecraft orbital dynamics plus attitude

More information

Σ _. Feedback Amplifiers: One and Two Pole cases. Negative Feedback:

Σ _. Feedback Amplifiers: One and Two Pole cases. Negative Feedback: Feedback Amplifiers: One and Two Pole cases Negative Feedback: Σ _ a f There must be 180 o phase shift somewhere in the loop. This is often provided by an inverting amplifier or by use of a differential

More information

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP Department of Electrical and Computer Engineering Ben-Gurion University of the Negev LAB 1 - Introduction to USRP - 1-1 Introduction In this lab you will use software reconfigurable RF hardware from National

More information

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor Jaswandi Sawant, Divyesh Ginoya Department of Instrumentation and control, College of Engineering, Pune. ABSTRACT This

More information

ELECTRICAL ENGINEERING

ELECTRICAL ENGINEERING EE ELECTRICAL ENGINEERING See beginning of Section H for abbreviations, course numbers and coding. The * denotes labs which are held on alternate weeks. A minimum grade of C is required for all prerequisite

More information

Design of a TL431-Based Controller for a Flyback Converter

Design of a TL431-Based Controller for a Flyback Converter Design of a TL431-Based Controller for a Flyback Converter Dr. John Schönberger Plexim GmbH Technoparkstrasse 1 8005 Zürich 1 Introduction The TL431 is a reference voltage source that is commonly used

More information

http://school-maths.com Gerrit Stols

http://school-maths.com Gerrit Stols For more info and downloads go to: http://school-maths.com Gerrit Stols Acknowledgements GeoGebra is dynamic mathematics open source (free) software for learning and teaching mathematics in schools. It

More information

Prelab Exercises: Hooke's Law and the Behavior of Springs

Prelab Exercises: Hooke's Law and the Behavior of Springs 59 Prelab Exercises: Hooke's Law and the Behavior of Springs Study the description of the experiment that follows and answer the following questions.. (3 marks) Explain why a mass suspended vertically

More information

Design-Simulation-Optimization Package for a Generic 6-DOF Manipulator with a Spherical Wrist

Design-Simulation-Optimization Package for a Generic 6-DOF Manipulator with a Spherical Wrist Design-Simulation-Optimization Package for a Generic 6-DOF Manipulator with a Spherical Wrist MHER GRIGORIAN, TAREK SOBH Department of Computer Science and Engineering, U. of Bridgeport, USA ABSTRACT Robot

More information

Introduction to LabVIEW for Control Design & Simulation Ricardo Dunia (NI), Eric Dean (NI), and Dr. Thomas Edgar (UT)

Introduction to LabVIEW for Control Design & Simulation Ricardo Dunia (NI), Eric Dean (NI), and Dr. Thomas Edgar (UT) Introduction to LabVIEW for Control Design & Simulation Ricardo Dunia (NI), Eric Dean (NI), and Dr. Thomas Edgar (UT) Reference Text : Process Dynamics and Control 2 nd edition, by Seborg, Edgar, Mellichamp,

More information

F B = ilbsin(f), L x B because we take current i to be a positive quantity. The force FB. L and. B as shown in the Figure below.

F B = ilbsin(f), L x B because we take current i to be a positive quantity. The force FB. L and. B as shown in the Figure below. PHYSICS 176 UNIVERSITY PHYSICS LAB II Experiment 9 Magnetic Force on a Current Carrying Wire Equipment: Supplies: Unit. Electronic balance, Power supply, Ammeter, Lab stand Current Loop PC Boards, Magnet

More information

Solving Systems of Linear Equations Using Matrices

Solving Systems of Linear Equations Using Matrices Solving Systems of Linear Equations Using Matrices What is a Matrix? A matrix is a compact grid or array of numbers. It can be created from a system of equations and used to solve the system of equations.

More information

Newton s Law of Motion

Newton s Law of Motion chapter 5 Newton s Law of Motion Static system 1. Hanging two identical masses Context in the textbook: Section 5.3, combination of forces, Example 4. Vertical motion without friction 2. Elevator: Decelerating

More information

Computational Mathematics with Python

Computational Mathematics with Python Boolean Arrays Classes Computational Mathematics with Python Basics Olivier Verdier and Claus Führer 2009-03-24 Olivier Verdier and Claus Führer Computational Mathematics with Python 2009-03-24 1 / 40

More information

Positive Feedback and Oscillators

Positive Feedback and Oscillators Physics 3330 Experiment #6 Fall 1999 Positive Feedback and Oscillators Purpose In this experiment we will study how spontaneous oscillations may be caused by positive feedback. You will construct an active

More information

GRADES 7, 8, AND 9 BIG IDEAS

GRADES 7, 8, AND 9 BIG IDEAS Table 1: Strand A: BIG IDEAS: MATH: NUMBER Introduce perfect squares, square roots, and all applications Introduce rational numbers (positive and negative) Introduce the meaning of negative exponents for

More information

Financial Econometrics MFE MATLAB Introduction. Kevin Sheppard University of Oxford

Financial Econometrics MFE MATLAB Introduction. Kevin Sheppard University of Oxford Financial Econometrics MFE MATLAB Introduction Kevin Sheppard University of Oxford October 21, 2013 2007-2013 Kevin Sheppard 2 Contents Introduction i 1 Getting Started 1 2 Basic Input and Operators 5

More information

San José State University Department of Electrical Engineering EE 112, Linear Systems, Spring 2010

San José State University Department of Electrical Engineering EE 112, Linear Systems, Spring 2010 San José State University Department of Electrical Engineering EE 112, Linear Systems, Spring 2010 Instructor: Robert H. Morelos-Zaragoza Office Location: ENGR 373 Telephone: (408) 924-3879 Email: robert.morelos-zaragoza@sjsu.edu

More information

Time Response Analysis of DC Motor using Armature Control Method and Its Performance Improvement using PID Controller

Time Response Analysis of DC Motor using Armature Control Method and Its Performance Improvement using PID Controller Available online www.ejaet.com European Journal of Advances in Engineering and Technology, 5, (6): 56-6 Research Article ISSN: 394-658X Time Response Analysis of DC Motor using Armature Control Method

More information

Introduction to Simulink

Introduction to Simulink Introduction to Simulink MEEN 364 Simulink is a software package for modeling, simulating, and analyzing dynamical systems. It supports linear and nonlinear systems, modeled in continuous time, sampled

More information

CONCEPT-II. Overview of demo examples

CONCEPT-II. Overview of demo examples CONCEPT-II CONCEPT-II is a frequency domain method of moment (MoM) code, under development at the Institute of Electromagnetic Theory at the Technische Universität Hamburg-Harburg (www.tet.tuhh.de). Overview

More information

ASEN 3112 - Structures. MDOF Dynamic Systems. ASEN 3112 Lecture 1 Slide 1

ASEN 3112 - Structures. MDOF Dynamic Systems. ASEN 3112 Lecture 1 Slide 1 19 MDOF Dynamic Systems ASEN 3112 Lecture 1 Slide 1 A Two-DOF Mass-Spring-Dashpot Dynamic System Consider the lumped-parameter, mass-spring-dashpot dynamic system shown in the Figure. It has two point

More information

ECE 3510 Final given: Spring 11

ECE 3510 Final given: Spring 11 ECE 50 Final given: Spring This part of the exam is Closed book, Closed notes, No Calculator.. ( pts) For each of the time-domain signals shown, draw the poles of the signal's Laplace transform on the

More information

Motor Modeling and Position Control Lab Week 3: Closed Loop Control

Motor Modeling and Position Control Lab Week 3: Closed Loop Control Motor Modeling and Position Control Lab Week 3: Closed Loop Control 1. Review In the first week of motor modeling lab, a mathematical model of a DC motor from first principles was derived to obtain a first

More information

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI Solving a System of Linear Algebraic Equations (last updated 5/19/05 by GGB) Objectives:

More information

Rotation: Moment of Inertia and Torque

Rotation: Moment of Inertia and Torque Rotation: Moment of Inertia and Torque Every time we push a door open or tighten a bolt using a wrench, we apply a force that results in a rotational motion about a fixed axis. Through experience we learn

More information

Simple Programming in MATLAB. Plotting a graph using MATLAB involves three steps:

Simple Programming in MATLAB. Plotting a graph using MATLAB involves three steps: Simple Programming in MATLAB Plotting Graphs: We will plot the graph of the function y = f(x) = e 1.5x sin(8πx), 0 x 1 Plotting a graph using MATLAB involves three steps: Create points 0 = x 1 < x 2

More information

BSEE Degree Plan Bachelor of Science in Electrical Engineering: 2015-16

BSEE Degree Plan Bachelor of Science in Electrical Engineering: 2015-16 BSEE Degree Plan Bachelor of Science in Electrical Engineering: 2015-16 Freshman Year ENG 1003 Composition I 3 ENG 1013 Composition II 3 ENGR 1402 Concepts of Engineering 2 PHYS 2034 University Physics

More information

GeoGebra. 10 lessons. Gerrit Stols

GeoGebra. 10 lessons. Gerrit Stols GeoGebra in 10 lessons Gerrit Stols Acknowledgements GeoGebra is dynamic mathematics open source (free) software for learning and teaching mathematics in schools. It was developed by Markus Hohenwarter

More information

Part IB Paper 6: Information Engineering LINEAR SYSTEMS AND CONTROL Dr Glenn Vinnicombe HANDOUT 3. Stability and pole locations.

Part IB Paper 6: Information Engineering LINEAR SYSTEMS AND CONTROL Dr Glenn Vinnicombe HANDOUT 3. Stability and pole locations. Part IB Paper 6: Information Engineering LINEAR SYSTEMS AND CONTROL Dr Glenn Vinnicombe HANDOUT 3 Stability and pole locations asymptotically stable marginally stable unstable Imag(s) repeated poles +

More information

QNET Experiment #06: HVAC Proportional- Integral (PI) Temperature Control Heating, Ventilation, and Air Conditioning Trainer (HVACT)

QNET Experiment #06: HVAC Proportional- Integral (PI) Temperature Control Heating, Ventilation, and Air Conditioning Trainer (HVACT) Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #06: HVAC Proportional- Integral (PI) Temperature Control Heating, Ventilation, and Air Conditioning Trainer (HVACT) Student Manual Table of Contents

More information

Computational Mathematics with Python

Computational Mathematics with Python Computational Mathematics with Python Basics Claus Führer, Jan Erik Solem, Olivier Verdier Spring 2010 Claus Führer, Jan Erik Solem, Olivier Verdier Computational Mathematics with Python Spring 2010 1

More information

Figure 1. The Ball and Beam System.

Figure 1. The Ball and Beam System. BALL AND BEAM : Basics Peter Wellstead: control systems principles.co.uk ABSTRACT: This is one of a series of white papers on systems modelling, analysis and control, prepared by Control Systems Principles.co.uk

More information

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS Objective In this experiment you will study the i-v characteristics of an MOS transistor. You will use the MOSFET as a variable resistor and as a switch. BACKGROUND

More information

THE EDUCATIONAL IMPACT OF A GANTRY CRANE PROJECT IN AN UNDERGRADUATE CONTROLS CLASS

THE EDUCATIONAL IMPACT OF A GANTRY CRANE PROJECT IN AN UNDERGRADUATE CONTROLS CLASS Proceedings of IMECE: International Mechanical Engineering Congress and Exposition Nov. 7-22, 2002, New Orleans, LA. THE EDUCATIONAL IMPACT OF A GANTRY CRANE PROJECT IN AN UNDERGRADUATE CONTROLS CLASS

More information

Dynamic Process Modeling. Process Dynamics and Control

Dynamic Process Modeling. Process Dynamics and Control Dynamic Process Modeling Process Dynamics and Control 1 Description of process dynamics Classes of models What do we need for control? Modeling for control Mechanical Systems Modeling Electrical circuits

More information

DRAFT. Further mathematics. GCE AS and A level subject content

DRAFT. Further mathematics. GCE AS and A level subject content Further mathematics GCE AS and A level subject content July 2014 s Introduction Purpose Aims and objectives Subject content Structure Background knowledge Overarching themes Use of technology Detailed

More information

Physics 221 Experiment 5: Magnetic Fields

Physics 221 Experiment 5: Magnetic Fields Physics 221 Experiment 5: Magnetic Fields August 25, 2007 ntroduction This experiment will examine the properties of magnetic fields. Magnetic fields can be created in a variety of ways, and are also found

More information

DISTANCE DEGREE PROGRAM CURRICULUM NOTE:

DISTANCE DEGREE PROGRAM CURRICULUM NOTE: Bachelor of Science in Electrical Engineering DISTANCE DEGREE PROGRAM CURRICULUM NOTE: Some Courses May Not Be Offered At A Distance Every Semester. Chem 121C General Chemistry I 3 Credits Online Fall

More information

Práctica 1: PL 1a: Entorno de programación MathWorks: Simulink

Práctica 1: PL 1a: Entorno de programación MathWorks: Simulink Práctica 1: PL 1a: Entorno de programación MathWorks: Simulink 1 Objetivo... 3 Introducción Simulink... 3 Open the Simulink Library Browser... 3 Create a New Simulink Model... 4 Simulink Examples... 4

More information

Basic Op Amp Circuits

Basic Op Amp Circuits Basic Op Amp ircuits Manuel Toledo INEL 5205 Instrumentation August 3, 2008 Introduction The operational amplifier (op amp or OA for short) is perhaps the most important building block for the design of

More information

Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering

Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering Engineering Problem Solving and Excel EGN 1006 Introduction to Engineering Mathematical Solution Procedures Commonly Used in Engineering Analysis Data Analysis Techniques (Statistics) Curve Fitting techniques

More information

Scicos is a Scilab toolbox included in the Scilab package. The Scicos editor can be opened by the scicos command

Scicos is a Scilab toolbox included in the Scilab package. The Scicos editor can be opened by the scicos command 7 Getting Started 7.1 Construction of a Simple Diagram Scicos contains a graphical editor that can be used to construct block diagram models of dynamical systems. The blocks can come from various palettes

More information

Modeling Mechanical Systems

Modeling Mechanical Systems chp3 1 Modeling Mechanical Systems Dr. Nhut Ho ME584 chp3 2 Agenda Idealized Modeling Elements Modeling Method and Examples Lagrange s Equation Case study: Feasibility Study of a Mobile Robot Design Matlab

More information

Lab 1: Full Adder 0.0

Lab 1: Full Adder 0.0 Lab 1: Full Adder 0.0 Introduction In this lab you will design a simple digital circuit called a full adder. You will then use logic gates to draw a schematic for the circuit. Finally, you will verify

More information

Drivetech, Inc. Innovations in Motor Control, Drives, and Power Electronics

Drivetech, Inc. Innovations in Motor Control, Drives, and Power Electronics Drivetech, Inc. Innovations in Motor Control, Drives, and Power Electronics Dal Y. Ohm, Ph.D. - President 25492 Carrington Drive, South Riding, Virginia 20152 Ph: (703) 327-2797 Fax: (703) 327-2747 ohm@drivetechinc.com

More information

Lecture 8 : Dynamic Stability

Lecture 8 : Dynamic Stability Lecture 8 : Dynamic Stability Or what happens to small disturbances about a trim condition 1.0 : Dynamic Stability Static stability refers to the tendency of the aircraft to counter a disturbance. Dynamic

More information

Appendix 4 Simulation software for neuronal network models

Appendix 4 Simulation software for neuronal network models Appendix 4 Simulation software for neuronal network models D.1 Introduction This Appendix describes the Matlab software that has been made available with Cerebral Cortex: Principles of Operation (Rolls

More information

Experimental Identification an Interactive Online Course

Experimental Identification an Interactive Online Course Proceedings of the 17th World Congress The International Federation of Automatic Control Experimental Identification an Interactive Online Course L. Čirka, M. Fikar, M. Kvasnica, and M. Herceg Institute

More information

PID Control. Chapter 10

PID Control. Chapter 10 Chapter PID Control Based on a survey of over eleven thousand controllers in the refining, chemicals and pulp and paper industries, 97% of regulatory controllers utilize PID feedback. Desborough Honeywell,

More information

Using the Theory of Reals in. Analyzing Continuous and Hybrid Systems

Using the Theory of Reals in. Analyzing Continuous and Hybrid Systems Using the Theory of Reals in Analyzing Continuous and Hybrid Systems Ashish Tiwari Computer Science Laboratory (CSL) SRI International (SRI) Menlo Park, CA 94025 Email: ashish.tiwari@sri.com Ashish Tiwari

More information

(Refer Slide Time: 2:03)

(Refer Slide Time: 2:03) Control Engineering Prof. Madan Gopal Department of Electrical Engineering Indian Institute of Technology, Delhi Lecture - 11 Models of Industrial Control Devices and Systems (Contd.) Last time we were

More information

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE HITACHI INVERTER SJ/L1/3 SERIES PID CONTROL USERS GUIDE After reading this manual, keep it for future reference Hitachi America, Ltd. HAL1PID CONTENTS 1. OVERVIEW 3 2. PID CONTROL ON SJ1/L1 INVERTERS 3

More information

Review of Fundamental Mathematics

Review of Fundamental Mathematics Review of Fundamental Mathematics As explained in the Preface and in Chapter 1 of your textbook, managerial economics applies microeconomic theory to business decision making. The decision-making tools

More information

LAGUARDIA COMMUNITY COLLEGE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF MATHEMATICS, ENGINEERING, AND COMPUTER SCIENCE

LAGUARDIA COMMUNITY COLLEGE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF MATHEMATICS, ENGINEERING, AND COMPUTER SCIENCE LAGUARDIA COMMUNITY COLLEGE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF MATHEMATICS, ENGINEERING, AND COMPUTER SCIENCE MAT 119 STATISTICS AND ELEMENTARY ALGEBRA 5 Lecture Hours, 2 Lab Hours, 3 Credits Pre-

More information

AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables

AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables AMATH 352 Lecture 3 MATLAB Tutorial MATLAB (short for MATrix LABoratory) is a very useful piece of software for numerical analysis. It provides an environment for computation and the visualization. Learning

More information

The DC Motor. Physics 1051 Laboratory #5 The DC Motor

The DC Motor. Physics 1051 Laboratory #5 The DC Motor The DC Motor Physics 1051 Laboratory #5 The DC Motor Contents Part I: Objective Part II: Introduction Magnetic Force Right Hand Rule Force on a Loop Magnetic Dipole Moment Torque Part II: Predictions Force

More information

CD-ROM Appendix E: Matlab

CD-ROM Appendix E: Matlab CD-ROM Appendix E: Matlab Susan A. Fugett Matlab version 7 or 6.5 is a very powerful tool useful for many kinds of mathematical tasks. For the purposes of this text, however, Matlab 7 or 6.5 will be used

More information

DRV8312-C2-KIT How to Run Guide

DRV8312-C2-KIT How to Run Guide DRV8312-C2-KIT How to Run Guide Version 1.1 October 2011 C2000 Systems and Applications Team This Guide explains the steps needed to run the DRV8312-C2-KIT with the software supplied through controlsuite.

More information

Laboratory 4: Feedback and Compensation

Laboratory 4: Feedback and Compensation Laboratory 4: Feedback and Compensation To be performed during Week 9 (Oct. 20-24) and Week 10 (Oct. 27-31) Due Week 11 (Nov. 3-7) 1 Pre-Lab This Pre-Lab should be completed before attending your regular

More information

E x p e r i m e n t 5 DC Motor Speed Control

E x p e r i m e n t 5 DC Motor Speed Control E x p e r i m e n t 5 DC Motor Speed Control IT IS PREFERED that students ANSWER THE QUESTION/S BEFORE DOING THE LAB BECAUSE THAT provides THE BACKGROUND information needed for THIS LAB. (0% of the grade

More information

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives Physics 9e/Cutnell correlated to the College Board AP Physics 1 Course Objectives Big Idea 1: Objects and systems have properties such as mass and charge. Systems may have internal structure. Enduring

More information

Name Partners Date. Energy Diagrams I

Name Partners Date. Energy Diagrams I Name Partners Date Visual Quantum Mechanics The Next Generation Energy Diagrams I Goal Changes in energy are a good way to describe an object s motion. Here you will construct energy diagrams for a toy

More information

Learning Module 6 Linear Dynamic Analysis

Learning Module 6 Linear Dynamic Analysis Learning Module 6 Linear Dynamic Analysis What is a Learning Module? Title Page Guide A Learning Module (LM) is a structured, concise, and self-sufficient learning resource. An LM provides the learner

More information

Active Vibration Isolation of an Unbalanced Machine Spindle

Active Vibration Isolation of an Unbalanced Machine Spindle UCRL-CONF-206108 Active Vibration Isolation of an Unbalanced Machine Spindle D. J. Hopkins, P. Geraghty August 18, 2004 American Society of Precision Engineering Annual Conference Orlando, FL, United States

More information

MatLab - Systems of Differential Equations

MatLab - Systems of Differential Equations Fall 2015 Math 337 MatLab - Systems of Differential Equations This section examines systems of differential equations. It goes through the key steps of solving systems of differential equations through

More information

VCO K 0 /S K 0 is tho slope of the oscillator frequency to voltage characteristic in rads per sec. per volt.

VCO K 0 /S K 0 is tho slope of the oscillator frequency to voltage characteristic in rads per sec. per volt. Phase locked loop fundamentals The basic form of a phase locked loop (PLL) consists of a voltage controlled oscillator (VCO), a phase detector (PD), and a filter. In its more general form (Figure 1), the

More information

SAMPLE CHAPTERS UNESCO EOLSS PID CONTROL. Araki M. Kyoto University, Japan

SAMPLE CHAPTERS UNESCO EOLSS PID CONTROL. Araki M. Kyoto University, Japan PID CONTROL Araki M. Kyoto University, Japan Keywords: feedback control, proportional, integral, derivative, reaction curve, process with self-regulation, integrating process, process model, steady-state

More information

Controller Design using the Maple Professional Math Toolbox for LabVIEW

Controller Design using the Maple Professional Math Toolbox for LabVIEW Controller Design using the Maple Professional Math Toolbox for LabVIEW This application demonstrates how you can use the Maple Professional Math Toolbox for LabVIEW to design and tune a Proportional-Integral-Derivative

More information

MODELING FIRST AND SECOND ORDER SYSTEMS IN SIMULINK

MODELING FIRST AND SECOND ORDER SYSTEMS IN SIMULINK MODELING FIRST AND SECOND ORDER SYSTEMS IN SIMULINK First and second order differential equations are commonly studied in Dynamic courses, as they occur frequently in practice. Because of this, we will

More information

PGR Computing Programming Skills

PGR Computing Programming Skills PGR Computing Programming Skills Dr. I. Hawke 2008 1 Introduction The purpose of computing is to do something faster, more efficiently and more reliably than you could as a human do it. One obvious point

More information

ANALYTICAL METHODS FOR ENGINEERS

ANALYTICAL METHODS FOR ENGINEERS UNIT 1: Unit code: QCF Level: 4 Credit value: 15 ANALYTICAL METHODS FOR ENGINEERS A/601/1401 OUTCOME - TRIGONOMETRIC METHODS TUTORIAL 1 SINUSOIDAL FUNCTION Be able to analyse and model engineering situations

More information

Figure 1.1 Vector A and Vector F

Figure 1.1 Vector A and Vector F CHAPTER I VECTOR QUANTITIES Quantities are anything which can be measured, and stated with number. Quantities in physics are divided into two types; scalar and vector quantities. Scalar quantities have

More information

SERIES-PARALLEL DC CIRCUITS

SERIES-PARALLEL DC CIRCUITS Name: Date: Course and Section: Instructor: EXPERIMENT 1 SERIES-PARALLEL DC CIRCUITS OBJECTIVES 1. Test the theoretical analysis of series-parallel networks through direct measurements. 2. Improve skills

More information

with functions, expressions and equations which follow in units 3 and 4.

with functions, expressions and equations which follow in units 3 and 4. Grade 8 Overview View unit yearlong overview here The unit design was created in line with the areas of focus for grade 8 Mathematics as identified by the Common Core State Standards and the PARCC Model

More information

Tutorial for Assignment #2 Gantry Crane Analysis By ANSYS (Mechanical APDL) V.13.0

Tutorial for Assignment #2 Gantry Crane Analysis By ANSYS (Mechanical APDL) V.13.0 Tutorial for Assignment #2 Gantry Crane Analysis By ANSYS (Mechanical APDL) V.13.0 1 Problem Description Design a gantry crane meeting the geometry presented in Figure 1 on page #325 of the course textbook

More information

The Effective Number of Bits (ENOB) of my R&S Digital Oscilloscope Technical Paper

The Effective Number of Bits (ENOB) of my R&S Digital Oscilloscope Technical Paper The Effective Number of Bits (ENOB) of my R&S Digital Oscilloscope Technical Paper Products: R&S RTO1012 R&S RTO1014 R&S RTO1022 R&S RTO1024 This technical paper provides an introduction to the signal

More information

Introduction to Engineering System Dynamics

Introduction to Engineering System Dynamics CHAPTER 0 Introduction to Engineering System Dynamics 0.1 INTRODUCTION The objective of an engineering analysis of a dynamic system is prediction of its behaviour or performance. Real dynamic systems are

More information

Learning Module 4 - Thermal Fluid Analysis Note: LM4 is still in progress. This version contains only 3 tutorials.

Learning Module 4 - Thermal Fluid Analysis Note: LM4 is still in progress. This version contains only 3 tutorials. Learning Module 4 - Thermal Fluid Analysis Note: LM4 is still in progress. This version contains only 3 tutorials. Attachment C1. SolidWorks-Specific FEM Tutorial 1... 2 Attachment C2. SolidWorks-Specific

More information

Classroom Tips and Techniques: The Student Precalculus Package - Commands and Tutors. Content of the Precalculus Subpackage

Classroom Tips and Techniques: The Student Precalculus Package - Commands and Tutors. Content of the Precalculus Subpackage Classroom Tips and Techniques: The Student Precalculus Package - Commands and Tutors Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft This article provides a systematic exposition

More information

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore. Power Electronics Prof. K. Gopakumar Centre for Electronics Design and Technology Indian Institute of Science, Bangalore Lecture - 1 Electric Drive Today, we will start with the topic on industrial drive

More information

LAYOUT OF THE KEYBOARD

LAYOUT OF THE KEYBOARD Dr. Charles Hofmann, LaSalle hofmann@lasalle.edu Dr. Roseanne Hofmann, MCCC rhofman@mc3.edu ------------------------------------------------------------------------------------------------- DISPLAY CONTRAST

More information

Definition: A vector is a directed line segment that has and. Each vector has an initial point and a terminal point.

Definition: A vector is a directed line segment that has and. Each vector has an initial point and a terminal point. 6.1 Vectors in the Plane PreCalculus 6.1 VECTORS IN THE PLANE Learning Targets: 1. Find the component form and the magnitude of a vector.. Perform addition and scalar multiplication of two vectors. 3.

More information

Unit - 6 Vibrations of Two Degree of Freedom Systems

Unit - 6 Vibrations of Two Degree of Freedom Systems Unit - 6 Vibrations of Two Degree of Freedom Systems Dr. T. Jagadish. Professor for Post Graduation, Department of Mechanical Engineering, Bangalore Institute of Technology, Bangalore Introduction A two

More information