For System Dynamics & Control

Slides:



Advertisements
Similar presentations
1 Application Software Course Simulink By: Mahdi Akbari 2010.
Advertisements

1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering,
MATLAB BASICS ECEN 605 Linear Control Systems Instructor: S.P. Bhattacharyya.
Class 4 Systems and Solutions. 1 st Order Systems.
© 2002 QxDesign, Inc. Building a PI controller This unit discusses Installation of Visual ModelQ The Visual ModelQ default model Placing and configuring.
MATLAB and SimulinkLecture 71 To days Outline  Callbacks  MATLAB And Simulink  S-functions  Project suggestions.
H(s) x(t)y(t) 8.b Laplace Transform: Y(s)=X(s) H(s) The Laplace transform can be used in the solution of ordinary linear differential equations. Let’s.
ENGR-25_Lec-25_SimuLink-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Getting started with Simulink An introductory tutorial ES205 Analysis and Design of Engineering Systems Rose-Hulman Institute of Technology © R. Layton.
1 A Tool for System Simulation: SIMULINK Can be used for simulation of various systems: – Linear, nonlinear; Input signals can be arbitrarily generated:
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
Special Projects on Control Topic : MATLAB Simulink.
HossamTalaat - MATLAB Course - KSU - 21/1/24 1 IEEE Student Branch - College of Engineering - KSU Getting started with Simulink By Prof. Hossam Talaat.
Simulink ® From Simulink® 7 Getting Started Guide.
Controlling a 3D Vehicle with Simulink Jeff Bender ME
Introduction to Simulink Dr. Mohammed F. Alsayed.
LAB 1 MATLAB, dSPACE and Simulink
ENSC 383- Feedback Control Summer 2010 TAs:Kaveh Kianfar, Esmaeil Tafazzoli G(s) U(s) inputY(s) output MATLAB Tutorial 1.
Numerical Computation Lecture 2: Introduction to Matlab Programming United International College.
Matlab Basics Tutorial. Vectors Let's start off by creating something simple, like a vector. Enter each element of the vector (separated by a space) between.
Control Theory Lab 4 Modeling of Physical-SİMULİNK.
ECE 4115 Control Systems Lab 1 Spring 2005
ECEN/MAE 3723 – Systems I MATLAB Lecture 2. Lecture Overview What is Simulink? How to use Simulink  Getting Start with Simulink  Building a model Example.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
ECE 4115 Control Systems Lab 1 Spring 2005 Chapter 1 System models.
Scientific Computing Introduction to Matlab Programming.
Regensburg, 24. – Introduction to Simulink Pavel Karban University of West Bohemia, Faculty of Electrical Engineering, Department of Theory.
OUTLINE Overview Numbers, variables and similar in Matlab
Introduction to Matlab and Simulink
Introduction to Matlab Module #9 Page 1 Introduction to Matlab Module #9 – Simulink Topics 1.Simulink Textbook Reading Assignments Practice Problems.
EE 460 Advanced Control and System Integration
SIMULINK-Tutorial 1 Class ECES-304 Presented by : Shubham Bhat.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VII Introduction to SIMULINK Rajeev Madazhy
DC Motor Speed Modeling in Simulink
EE3417 – Introduction to Simulink
Modeling of Power Converters using Matlab and Simulink
Simulink Simulink is a graphical extension to MATLAB for modeling and simulation of systems. In Simulink, systems are drawn on screen as block diagrams.
INTRODUCTION TO SIMULINK by Yasmin Hanum Md Thayoob & Aidil Azwin Zainul Abidin.
SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 12”
S-Functions in Simulink
Simulink by Dr. Amin Danial Asham. References  MATLAB Help  Telemark University College - Department of Electrical Engineering, Information Technology.
Simulink  ? 1 Simulink  ( Simu lation and Link ) is an extension of Matlab Offers modeling, simulation, and analysis of dynamical systems; i.e., a system.
MATLAB and SimulinkLecture 21 To days Outline Introduction to Simulink Block diagrams Building models Exercises on today’s topics.
CONTROL SYSTEM DESIGN by using MATLAB
Variable-Frequency Response Analysis Network performance as function of frequency. Transfer function Sinusoidal Frequency Analysis Bode plots to display.
SINUSOIDAL FREQUENCY ANALYSIS To study the behavior of a network as a function of the frequency we analyze the network function as a function of Circuit.
HossamTalaat - MATLAB Course - KSU - 17/08/14231 IEEE Student Branch - College of Engineering - KSU Getting started with Simulink (part 2) By Prof. Hossam.
Getting started with Simulink
 Sub : system response analysis using ‘MATLAB’. prepared by, chokshi abhi ( ) Guided by, Prof. Vishvjit.K.Thakar sir(Head of ECE dept.).
Simulink Modelling Tutorial In Simulink, it is very straightforward to represent a physical system or a model. In general, a dynamic system can be constructed.
Getting started with Simulink An introductory tutorial.
BEST Robotic, Inc. MATLAB/Simulink Team Training
WORKSHOP 1 CO-SIMULATION.
- Graphical extension to MATLAB for modeling and simulation of systems
SIMULINK LOGIKA DAN PEMROGRAMAN KOMPUTER Wayan Nata Septiadi, ST
Damped Forced Vibrations Analysis Using CAMP-G® and Simulink® Modeled Solutions to Problem (
ECEN/MAE 3723 – Systems I MATLAB Lecture 2.
SINUSOIDAL FREQUENCY ANALYSIS
WORKSHOP 3 GSE IMPORT.
Simulink Basics Reijo Vuohelainen
Simulink A Simple Intro.
Licensed Electrical & Mechanical Engineer
سیمولینک کنترل خطی در متلب
MATLAB/SIMULINK Professor Walter W. Olson
GROpt.m (1) Copy the 7 files from GRopt.zip into one directory.
Fundamental Operation
Getting Started With Simulink
ECEN 605 Linear Control Systems Instructor: S.P. Bhattacharyya
Simulink Examples Ex1: Simulate the following equation Blocks needed:
ERT 210 DYNAMICS AND PROCESS CONTROL CHAPTER 11 – MATLAB TUTORIAL
Presentation transcript:

For System Dynamics & Control By Dr. Hong Zhang

Start Matlab

Free Matlab Clones Octave http://www.gnu.org/software/octave/ Very Similar commands Can run most M-files No built-in Simulink package Pure command line

Free Matlab Clones Scilab http://www.scilab .org/ Some commands are different Built-in Xcos to clone Simulink Some Graphic interface

Transfer Function a2s2 + a1s + a0 b2s2 + b1s + b0 Given a transfer function a2s2 + a1s + a0 b2s2 + b1s + b0 We can define it in Matlab as num = [a2, a1, a0]; den = [b2, b1, b0]; sys = tf(num, den);

Plot Transient Response Unit step response step(sys) Unit impulse response impulse(sys) Arbitrary input response t = tstart: tinterval : tfinish; u = f(t); % u is a function of t, e.g. ramp is u=t; lsim(sys, u, t)

Response As a Variable Just bring the output to a variable. E.g. y1 = step(sys); y2 = impule(sys); y3 = lsim(sys, u, t); Then we can use the variable. E.g. plot(t,y1, t, y2) plot(t, u, t, y3)

Partial Fractional Expansion [r, p, k] = residue(num, den); Where r: root p: pole k: constant If there are complex terms, we can add the two conjugate ones together to get a 2nd order real term.

Start Simulink Click the Simulink icon in Matlab window Matlab main window Simulink modeling window Simulink library browser

Transfer Function Find, drag and drop following blocks to the window Simulink  Continuous  Transfer Function Sources  Step Sinks  Scope You will get Output Input Except sources and sinks, every block should have an input and an output. Building Blocks

Modify Transfer Function Double click the Transfer function block. Change Numerator to [1], denominator to [1 3 2]

Run Simulation Link the blocks by drag the output to input Double click Scope to show Scope window Click Ctrl+T or SimulationStart or button

Modify System Change the spring constant and damping ratio, then you can have different response. [1 2 1] [1 2 12] Hint: Hit the binocular to auto-scale the plot.

Sinusoidal Response Replace the source with a Sine wave with frequency =3 Hint: Double click the block name to change it.

Flowchart with Feedback Hint: Hold Ctrl and click to tap an output line Right click a block and select Format to flip or rotate a block

Mass-Spring-Damper Modeling Rewrite as Assume m=2kg c=3NSec/m k=3N/m f(t)=1(t)N