1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering,

Slides:



Advertisements
Similar presentations
Module 1: BLOCK 1 / MAIN MENU
Advertisements

1 Application Software Course Simulink By: Mahdi Akbari 2010.
Getting Started with Microsoft Office 2007
Chapter 1 The Study of Body Function Image PowerPoint
BASIC SKILLS AND TOOLS USING ACCESS
XP New Perspectives on Microsoft Office Word 2003 Tutorial 2 1 Microsoft Office Word 2003 Tutorial 2 – Editing and Formatting a Document.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel PivotTable List Feature Creating a PivotTable List Web Page Using Excel.
Game Making with Alice Eat the Hay Game
Microsoft®.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Windows XP Project An Introduction to Microsoft Windows XP and Office 2003.
The Advantage Series © 2004 The McGraw-Hill Companies, Inc. All rights reserved Working with Access Microsoft Office Access 2003 Chapter 1.
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
1 2 In a computer system, a file is a collection of information with a single name, such as addresses.doc, or filebackup.ppt, or ftwr.exe, or guidebook.xls.
1 Web-Enabled Decision Support Systems Access Introduction: Touring Access Prof. Name Position (123) University Name.
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
Microsoft Access.
Vanderbilt Business Objects Users Group 1 Reporting Techniques & Formatting Beginning & Advanced.
Chapter 3 Basic Logic Gates 1.
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Chapter 4 Gates and Circuits.
First Steps using AutoDESK Inventor
Lesson 2 Navigating LabVIEW
XP New Perspectives on Introducing Microsoft Office 2003 Tutorial 1 1 Using Common Features of Microsoft Office 2003 Tutorial 1.
INTRODUCTION Lesson 1 – Microsoft Word Word Basics
Pasewark & Pasewark Microsoft Office 2003 : Introductory 1 INTRODUCTORY MICROSOFT WORD Lesson 4 – Formatting Text.
Chapter 11: The X Window System Guide To UNIX Using Linux Third Edition.
© Paradigm Publishing, Inc Excel 2013 Level 1 Unit 2Enhancing the Display of Worksheets Chapter 8 Adding Visual Interest to Workbooks.
Benchmark Series Microsoft Excel 2013 Level 2
COMPUTER INTERFACES.
INTRODUCTORY MICROSOFT WORD Lesson 7 – Working With Documents
25 seconds left…...
® Microsoft Office 2010 Browser and Basics.
TM Graphical Monitoring Electronic Service Tools.
Use the buttons on the top to navigate through the presentation 1 PrevNext Menu.
Chapter 8 Improving the User Interface
Benchmark Series Microsoft Excel 2010 Level 1
Getting started with Simulink An introductory tutorial ES205 Analysis and Design of Engineering Systems Rose-Hulman Institute of Technology © R. Layton.
PSPICE Tutorial Spring 2015
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
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.
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.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Introduction to Simulink Dr. Mohammed F. Alsayed.
Ansys Workbench 1 Introduction
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
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.
Regensburg, 24. – Introduction to Simulink Pavel Karban University of West Bohemia, Faculty of Electrical Engineering, Department of Theory.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Introduction to Matlab Module #9 Page 1 Introduction to Matlab Module #9 – Simulink Topics 1.Simulink Textbook Reading Assignments Practice Problems.
Introduction to MATLAB for Engineers Third Edition William J. Palm III Chapter 10 Simulink PowerPoint to accompany Copyright © The McGraw-Hill Companies,
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
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.
Digital Logic Circuits (Part 1) Computer Architecture (Fall 2006)
Simulink  ? 1 Simulink  ( Simu lation and Link ) is an extension of Matlab Offers modeling, simulation, and analysis of dynamical systems; i.e., a system.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Getting started with Simulink
Getting started with Simulink An introductory tutorial.
VAB™ for INFINITY Tutorial
- Graphical extension to MATLAB for modeling and simulation of systems
ECEN/MAE 3723 – Systems I MATLAB Lecture 2.
Simulink Basics Reijo Vuohelainen
Getting Started With Simulink
Presentation transcript:

1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt.

2 2 Eng. Mohamed Eltaher Eng.Ahmed Ibrahim 1. INTRODUCTION Simulink Simulink software models, simulates, and analyzes dynamic systems. It enables you to pose a question about a system, model the system, and see what happens. With Simulink, you can move beyond idealized linear models to explore more realistic nonlinear models. Simulink Simulink turns your computer into a laboratory for modeling and analyzing systems that would not be possible or practical otherwise. Thousands of scientists and engineers around the world use Simulink to model and solve real problems in a variety of industries, including: Aerospace and Defense Automotive Communications Electronics and Signal Processing Medical Instrumentation

3 3 Eng. Mohamed Eltaher Eng.Ahmed Ibrahim Simulink Tools Tool for Model-Based Design Model-Based Design is a process that enables faster, more cost-effective development of dynamic systems, including control systems, signal processing, and communications systems. Tool for Simulation After you define a model, you can simulate it, using a choice of mathematical integration methods, either from the Simulink menus or by entering commands in the MATLAB® Command Window. Tool for Analysis Model analysis tools include linearization and trimming tools, which can be accessed from the MATLAB command line, plus the many tools in MATLAB and its application toolboxes.

4 4 Eng. Mohamed Eltaher Eng.Ahmed Ibrahim 3. Modeling Process There are six steps to modeling any system: There are six steps to modeling any system: 1. Defining the System. 2. Identifying System Components. 3. Modeling the System with Equations. 4. Building the Simulink Block Diagram. 5. Running the Simulation. 6. Validating the Simulation Results.

5 5 4.Simulink Software Basics To start Simulink and open the Simulink Library Browser: Enter Simulink in the MATLAB Command Window. Clicking the Simulink icon in the MATLAB toolbar Clicking the MATLAB Start button, then selecting Simulink > Library Browser. 4.1 Starting Simulink Software 4.2 Opening a Model To create a new model: Select File > New > Model in the Simulink Library Browser. To open an existing model: 1. Select File > Open in the Simulink Library Browser. 2. Select the model (.mdl file) you want to open, then click Open.

Simulink User Interface Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

7 7 Simulink Online Help To access the online help: From the Simulink Library Browser, select Help > Simulink Help. From the Simulink model window, select Help > Using Simulink. 4.4 Getting Help with Simulink Software Simulink Demo Models To access the Simulink Demo: 1. On the bottom left corner of the MATLAB Command Window, click the Start button. The Start menu appears. 2. Select Simulink > Demos from the Start menu. Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

8 8 Simulink software provides 19 standard block libraries. The following table describes each of these libraries. 4.5 Standard Block Libraries Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

9 9 Cont. Block Libraries Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

10 Cont. Block Libraries Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

11 5.Creating a Simulink Model This section describes how to create a simple model using Simulink software, and how to simulate that model. The basic techniques you use to create and simulate this simple model are the same as those for more complex models. The model is integrates a sine wave and displays the result along with the original wave. When completed, the block diagram of the model should look similar to this: Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

12 To create a new model: 1. If Simulink is not running, enter simulink in the MATLAB Command Window to open the Simulink Library Browser. 2. Select File > New > Model in the Simulink Library Browser to create a new model. The software opens an empty model window. 5.1 Creating a New Model Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

13 To construct a model, you first copy blocks from the Simulink Library Browser to the model window. To create the simple model in this chapter, you need four blocks: Sine Wave To generate an input signal for the model Integrator To process the input signal Scope To visualize the signals in the model Mux To multiplex the input signal and processed signal into a single scope 5.2 Adding Blocks to Your Model Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

14 To add blocks to your model: 1. Select the Sources library in the Simulink Library Browser. The Simulink Library Browser displays the Sources library. Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

15 2. Select the Sine Wave block in the Simulink Library Browser, then drag it to the model window. A copy of the Sine Wave block appears in the model window. Eng. Mohamed Eltaher Eng.Ahmed Ibrahim 3. Select the Sinks library in the Simulink Library Browser. 4. Select the Scope block from the Sinks library, then drag it to the model window. A Scope block appears in the model window. 5. Select the Continuous library in the Simulink Library Browser. 6. Select the Integrator block from the Continuous library, then drag it to the model window. An Integrator block appears in the model window.

16 7. Select the Signal Routing library in the Simulink Library Browser. 8. Select the Mux block from the Sinks library, then drag it to the model window. A Mux block appears in the model window. 5.3 Moving Blocks in the Model Window Before you connect the blocks in your model, you should arrange them logically to make the signal connections as straightforward as possible. To move a block in the model window, you can either: Drag the block. Select the block, then press the arrow keys on the keyboard. Arrange the blocks in the model to look like the following figure.

17 After you add blocks to the model window, you must connect them to represent the signal connections within the model. Notice that each block has angle brackets on one or both sides. These angle brackets represent input and output ports: The > symbol pointing into a block is an input port. The > symbol pointing out of a block is an output port. 5.4 Connecting Blocks in the Model Window Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

18 To draw a line between two blocks : 1. Position the mouse pointer over the output port on the right side of the Sine Wave block. Note that the pointer changes to a cross hairs (+) shape while over the port. Eng. Mohamed Eltaher Eng.Ahmed Ibrahim 2. Drag a line from the output port to the top input port of the Mux block. Note that the line is dashed while you hold the mouse button down, and that the pointer changes to a double-lined cross hairs as it approaches the input port of the Mux block.

19 3. Release the mouse button over the output port. The software connects the blocks with an arrow that indicates the direction of signal flow. 4. Drag a line from the output port of the Integrator block to the bottom input port on the Mux block. 5. Select the Mux block, then Ctrl+click the Scope block. The software automatically draws the connection line between the blocks. The model should now look similar to the following figure.

20 Drawing a Branch Line: To weld a connection to an existing line: 1. Position the mouse pointer on the line between the Sine Wave and the Mux block. Eng. Mohamed Eltaher Eng.Ahmed Ibrahim 2. Press and hold the Ctrl key, then drag a line to the Integrator blocks input port. The software draws a line between the starting point and the input port of the Integrator block.

21 Setting Simulation Options To specify simulation options for the sample model: 1. Select Simulation > Configuration Parameters in the model window. The software displays the Configuration Parameters dialog box. 5.5 Simulating the Model 2. Enter 20 in the Stop time field. 3. Click OK.

22 Running the Simulation and Observing Results To run the simulation: 1. Select Simulation > Start in the model window. The software runs the model, stopping when it reaches the stop time specified in the Configuration Parameters dialog box. 2. Double-click the Scope block in the model window. The Scope window displays the simulation results. 3. Select File > Save in the model window. 4. Select File > Close in the model window.

23 6.Application For the circuit shown in Fig, the initial conditions are i L (0)=0, and V c (0)=0.5 V. Compute The response of V c (t). Solution Let us express the differential equation of Eng. Mohamed Eltaher Eng.Ahmed Ibrahim 6.1 Electrical Application

24 A block diagram of governing equation is Eng. Mohamed Eltaher Eng.Ahmed Ibrahim A Simulink is represented as:-

25 The initial conditions and are entered by double clicking the Integrator blocks and entering the 0 values for the first integrator, and 0.5 for the second integrator. We also need to specify the simulation time. This is done by specifying the simulation time to be 10 seconds on the Configuration Parameters from the Simulation drop menu. Eng. Mohamed Eltaher Eng.Ahmed Ibrahim

26 Using Algebraic Constraint blocks found in the Math Operations library, Display blocks found in the Sinks library, and Gain blocks found in the Commonly Used Blocks library, we will create a model that will produce the simultaneous solution of three equations with three unknowns. Eng. Mohamed Eltaher Eng.Ahmed Ibrahim 6.2 Linear Algebraic Equations

27 Go to MATLABs Command Window and we enter the following values: Eng. Mohamed Eltaher Eng.Ahmed Ibrahim Solution

28 Build a Simulink model that solves the following differential equation 2nd-order mass-spring-damper system zero ICs input f(t) is a step with magnitude 3 parameters: m = 0.25, c = 0.5, k = 1 Eng. Mohamed Eltaher Eng.Ahmed Ibrahim 6.3 Mechanical Vibration

29 THE SIMULINK MODEL THE RESPONSE