Experiment 6 SIMULINK

Similar documents
Experiment 8 SIMULINK

SIGNALS AND LINEAR SYSTEMS LABORATORY EELE

Introduction to Matlab Simulink. Control Systems

SIMULINK A Tutorial by Tom Nguyen

Session 3 Introduction to SIMULINK

Lecture 10: Simulink. What is Simulink?

[ MATLAB ] [ Resources ] PART TWO: SIMULINK

Objectives. Simulink Basics

Experiment 3. Getting Start with Simulink

Introduction to Simulink. The Use of Mathematic Simulations in Electrical Engineering

Introduction to Simulink

SIMULINK Tutorial. Select File-New-Model from the menu bar of this window. The following window should now appear.

Introduction to Simulink

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX

SIMULINK FOR BEGINNERS:

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

2 SIMULATING A MODEL Simulink Tutorial

Process Automation CHEM-E7140

UNIT 5. Simulink. 1. Introduction

2.0 MATLAB Fundamentals

Introduction to Simulink

the Simulation of Dynamics Using Simulink

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS

Computer Aided Design (CAD) Lecture 10. Introduction to Simulink (3) Dr.Eng. Basem ElHalawany

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

Simulink Basics Tutorial

Lab. Manual. Practical Special Topics (Matlab Programming) (EngE416) Prepared By Dr. Emad Saeid

Simulink Basics Tutorial

BME 5742 Bio-Systems Modeling and Control

Assignment 2 in Simulation of Telesystems Laboratory exercise: Introduction to Simulink and Communications Blockset

Modeling an Impulse in Simulink

MATLAB = MATrix LABoratory. Interactive system. Basic data element is an array that does not require dimensioning.

Introduction to Simulink

What is Simulink. >>simulink

Using MATLAB, SIMULINK and Control System Toolbox

ELEC ENG 4CL4 CONTROL SYSTEM DESIGN

Systems & Control Lab.-Manual

ME422 Mechanical Control Systems Matlab/Simulink Hints and Tips

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

Tutorial - Using Xilinx System Generator 14.6 for Co-Simulation on Digilent NEXYS3 (Spartan-6) Board

MODELING IN SCILAB: PAY ATTENTION TO THE RIGHT

Importing Models from Physical Modeling. Tools Using the FMI Standard

Chapter 5. Hardware Software co-simulation

Newsletter Issue 96 October 2004 MODELING OF PLANT CONTROLLERS USING THE PSS/E TO MATLAB-SIMULINK INTERFACE (PMSI) IN PSS/E 30

Chapter 1 Introduction to MATLAB

An Introduction to Using Simulink

Chapter 2. MathScript

Modeling Mechanical System using SIMULINK

Introduction to the MATLAB SIMULINK Program

MATLAB is a multi-paradigm numerical computing environment fourth-generation programming language. A proprietary programming language developed by

Introduction to Simulink. Todd Atkins

Intro to System Generator. Objectives. After completing this module, you will be able to:

Example: Modeling a Cruise Control System in Simulink

MATLAB Tutorial EE351M DSP. Created: Thursday Jan 25, 2007 Rayyan Jaber. Modified by: Kitaek Bae. Outline

MATLAB MATLAB mat lab funtool

USING THE SYSTEM-C LIBRARY FOR BIT TRUE SIMULATIONS IN MATLAB

ibob ADC Tutorial CASPER Reference Design

Matlab Tutorial, CDS

Dr Richard Greenaway

The MATLAB system The MATLAB system consists of five main parts:

Module 4. Computer-Aided Design (CAD) systems

University of Alberta

MATLAB AND MODELSIM LINKING

MATLAB Premier. Middle East Technical University Department of Mechanical Engineering ME 304 1/50

ENGR 253 LAB #1 - MATLAB Introduction

Nonlinear Control(FRTN05)

Interfacing OpenSim models with MATLAB /Simulink. OpenSim Workshop

MATLAB. Miran H. S. Mohammed. Lecture 1

Lab 6 : Introduction to Simulink, Link for CCS & Real-Time Workshop

USING THE MATLAB TOOLSET TO IMPROVE EFFICIENCY IN THE EOBD CALIBRATION PROCESS

Simulation of sensor failure accommodation in flight control system of transport aircraft: a modular approach

Matlab Introduction. Scalar Variables and Arithmetic Operators

Developing Customized Measurements and Automated Analysis Routines using MATLAB

16.06/16.07 Matlab/Simulink Tutorial

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7

Note 10 Introduction to MATLAB & SIMULINK

A/D Converter. Sampling. Figure 1.1: Block Diagram of a DSP System

Rapid Prototyping System for Teaching Real-Time Digital Signal Processing

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks

MATLAB An introductory tutorial

DSP Builder User Guide

Real-Time Windows Target

Introduction to MATLAB

Basic Xilinx Design Capture. Objectives. After completing this module, you will be able to:

Creates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window.

Dr Richard Greenaway

Friday, 11 January 13. Interpolation

Rotary Motion Servo Plant: SRV02. Rotary Experiment #00: QuaRC Integration. Using SRV02 with QuaRC. Student Manual

System Design S.CS301

FPGA Co-Simulation of Gaussian Filter Algorithm Application Note

EGR 111 Introduction to MATLAB

Introduction to MATLAB

A Framework for Video Processing with the DM6437 DVDP *

Mit MATLAB auf der Überholspur Methoden zur Beschleunigung von MATLAB Anwendungen

Introduction to Octave/Matlab. Deployment of Telecommunication Infrastructures

Embedded Target for TI C6000 DSP 2.0 Release Notes

HERIOT-WATT UNIVERSITY DEPARTMENT OF COMPUTING AND ELECTRICAL ENGINEERING. B35SD2 Matlab tutorial 1 MATLAB BASICS

AEMLog Users Guide. Version 1.01

Computer Programming ECIV 2303 Chapter 1 Starting with MATLAB Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering

Fun with Diagonals. 1. Now draw a diagonal between your chosen vertex and its non-adjacent vertex. So there would be a diagonal between A and C.

Transcription:

Experiment 6 SIMULINK

Simulink Introduction to simulink SIMULINK is an interactive environment for modeling, analyzing, and simulating a wide variety of dynamic systems. SIMULINK provides a graphical user interface for constructing block diagram models using drag-and-drop operations. A system is configured in terms of block diagram representation from a library of standard components. SIMULINK is very easy to learn. A system in block diagram representation is built easily and the simulation results are displayed quickly. Simulation algorithms and parameters can be changed in the middle of a simulation with intuitive results, thus providing the user with a ready access learning tool for simulating many of the operational problems found in the real world. SIMULINK is particularly useful for studying the effects of nonlinearities on the behavior of the system, and as such, it is also an ideal research tool. The key features of SIMULINK are Interactive simulations with live display. A comprehensive block library for creating linear, nonlinear, discrete or hybrid multi-input/output systems. Seven integration methods for fixed-step, variable-step, and stiff systems. Unlimited hierarchical model structure. Scalar and vector connections. Mask facility for creating custom blocks and block libraries. SIMULINK provides an open architecture that allows you to extend the simulation environment: You can easily perform what if analyses by changing model parameters either interactively or in batch mode while your simulations are running. Creating custom blocks and block libraries with your own icons and user interfaces from MATLAB, Fortran, or C code. You can generate C code from SIMULINK models for embedded applications and for rapid prototyping of control systems. You can create hierarchical models by grouping blocks into subsystems. There are no limits on the number of blocks or connections. SIMULINK provides immediate access to the mathematical, graphical, and programming capabilities of MATLAB, you can analyze data, automate procedures, and optimize parameters directly from SIMULINK. The advanced design and analysis capabilities of the toolboxes can be executed from within a simulation using the mask facility in SIMULINK. The SIMULINK block library can be extended with special-purpose blocksets. The DSP Blockset can be used for DSP algorithm development, while the Fixed-Point Blockset extends SIMULINK for modeling and simulating digital control systems and digital filters.

Getting Start : You start Simulink by clicking on the SIMULINK button on the MATLAB desktop tool bar. As an alternative method: type simulink in the command window

There are several groups of Simulink blocks in the Simulink icon such as Commonly Used Blocks, Continuous, Discontinuities, Math Operations, Sinks and Sources, etc. Selecting Commonly Used Blocks will provide a list of blocks shown in Fig. 2. Fig 2 : a list of blocks in Commonly Used Block group Selecting Continuous will provide a list of blocks shown in Fig. 3. The ones that we often use are Transfer Fcn, State-space and Integrator. Selecting the Sources icon yields the library shown in Fig. 4. The most commonly used sources are Clock (which is used to generate a time vector), Step (which generates a step input), and Constant (that generate a constant function). The Sinks icon as shown in Fig. 5 provides a set of Sinks blocks that are used to display

simulated results. The most often used blocks may be To Workspace (to which a variable passed is written to a vector in the MATLAB Workspace), Scope (to represent data graphically). Fig 3: A list of blocks in Continuous group

Fig 3: A list of blocks in source group

Fig 3: A list of blocks in Sinks group

Block Libraries Block icon Name Use Continuous State-Space Implement a linear state-space system Transfer Fcn Implement a linear transfer function Math Operations Derivative Merge scalar, vector or matrix signals Divide Multiply or divide inputs Function Gain Integrator Apply a specified expression to the input Multiplies the input by a constant value (gain) Integrate the input signal Math Function Perform a mathematical function Product Multiply inputs Sum Add or subtract inputs Transport Delay Delay the input by a given amount of time

Signal Routing Demux Mux Split vector signals into scalars or smaller vectors Extract and output the elements of a bus or vector signal Sinks Scope Display signals generated during a simulation To Workspace Write data to the workspace Sources XY Graph Clock Display an X-Y plot of signals using a MATLAB figure window Generate a time vector Constant Generate a constant Ramp Output a ramp signal Sine Wave Generate a sine wave signal Step General a step signal Table 1 Summary of Commonly Used Simulink Blocks

Example 1. Simulation of an Equation. In this example we will use Simulink to model an equation. Let's consider where the displacement x is a function of time t, frequency w, phase angle phi, and amplitue A. In this example the values for these parameters are set as follows: frequency=5 rad/sec;phase=pi/2;a=5. 1. From Simulink's library drag the following blocks to the Model Window Blocks to be dragged to the model window Ramp Constant Gain Sum Product Trigonometry Function Scope Mux Where located in Simulink library browser Sources Sources Math Operation Math Operation Math Operation Math Operation Sinks Signal Routing 2. The next step is to connect these blocks as shown. x(t)=2cos(5t+pi/2) 5 Constant Product Constant1 cos Trigonometric Function 5 Gain Ramp pi/2 Scope

NOW, make this example: Using Simulink plot this function 2 1 1 1 1 x ( t ).5 cost cos3t cos5t cos7t cos9 t... 3 5 7 9.5 Constant Sine Wave Sine Wave1 Sine Wave2 Scope Sine Wave3 Sine Wave4 Add

Solve Differential Equations