Contents Simulink model Grouping into subsystems Naming the subsystems

Slides:



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

Distributor meeting October 2007
The Operating System. What is an Operating System? The program that is loaded first and manages the hardware resources like main memory, backing storage.
MotoHawk Training Model-Based Design of Embedded Systems.
Understand the football simulation source code. Understand the football simulation source code. Learn all the technical specifications of the system components.
1 Performed By: Khaskin Luba Einhorn Raziel Einhorn Raziel Instructor: Rivkin Ina Spring 2004 Spring 2004 Virtex II-Pro Dynamical Test Application Part.
Design Realization lecture 23
©Brooks/Cole, 2003 Chapter 7 Operating Systems Dr. Barnawi.
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.
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
Model-Based Design and SDR Fabio Ancona Sundance Italia SRL CEO – Sales Director.
BY: ALI AJORIAN ISFAHAN UNIVERSITY OF TECHNOLOGY 2012 GPU Architecture 1.
High Speed Data Converter University
Tot 15 LTPDA Graphic User Interface summary and status N. Tateo 26/06/2007.
SW and HW platforms for development of SDR systems SW: Model-Based Design and SDR HW: Concept of Modular Design and Solutions Fabio Ancona Sundance Italia.
Interfaces to External EDA Tools Debussy Denali SWIFT™ Course 12.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
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.
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,
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
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”
Graphical Design Environment for a Reconfigurable Processor IAmE Abstract The Field Programmable Processor Array (FPPA) is a new reconfigurable architecture.
Simulink  ? 1 Simulink  ( Simu lation and Link ) is an extension of Matlab Offers modeling, simulation, and analysis of dynamical systems; i.e., a system.
7.1 Operating Systems. 7.2 A computer is a system composed of two major components: hardware and software. Computer hardware is the physical equipment.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
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.
Bill Tucker Austin Community College COSC 1315
Introduction to LabVIEW
Monitoring systems COMET types MS55 & MS6
VAB™ for INFINITY Tutorial
Lab 1: Using NIOS II processor for code execution on FPGA
Arduino Based Industrial appliances control system by decoding dual tone multi frequency signals on GSM / CDMA network. Submitted by:
- Graphical extension to MATLAB for modeling and simulation of systems
TrueTime.
Parallel Plasma Equilibrium Reconstruction Using GPU
Chapter 3: Process Concept
GNS3.
Haiwell PLC Modules Introduce
Operating Systems (CS 340 D)
Topics Introduction to Repetition Structures
Damped Forced Vibrations Analysis Using CAMP-G® and Simulink® Modeled Solutions to Problem (
Controlling a large CPU farm using industrial tools
Lecture 27 Creating Custom GUIs
ECEN/MAE 3723 – Systems I MATLAB Lecture 2.
Introduction of microprocessor
Simulink Basics Reijo Vuohelainen
Data Networking Fundamentals
IRQ, DMA and I/O Ports - Introduction -
TYPES OFF OPERATING SYSTEM
Operating Systems (CS 340 D)
Computer Architecture
Programmable Logic Controllers (PLCs) An Overview.
Chapter 4: Threads.
Serial Communication Interface: Using 8251
MicroEconomix 1500 RSLogix 500 LAB#1
Operating Systems.
Introduction to Orchestra
LTPDA Graphic User Interface summary and status
Chapter 3: Process Management
Introduction Communication Modes Transmission Modes
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Inputs, Outputs and Assignment
Presentation transcript:

Contents Simulink model Grouping into subsystems Naming the subsystems Adding OpComm blocks Maximizing parallel execution Setting simulation parameters Executing off-line

Simulink model Grouping into subsystems What is a subsystem in Simulink ? A set of blocks that are placed inside one single block called “Subsystem” Simplify the model by grouping blocks Establish hierarchical block diagram Keep functionally related blocks together

Simulink model Grouping into subsystems In RT-LAB platforms, subsystems have 2 objectives: Distinguish computation subsystems and GUI subsystem Assign computation subsystems to different CPU cores Anyway, the top-level of a Simulink® model used with RT-LAB must only display subsystems.

Simulink model Grouping into subsystems GUI Computation

Simulink model Grouping into subsystems 1. Distinguish real-time subsystems and GUI subsystem The computation subsystem will be executed in real- time (or accelerated simulation mode) on one CPU core of the real-time target The GUI subsystem will be displayed on the Host PC The data between computation subsystem and GUI subsystem is exchanged asynchronously through the TCP/IP link

Simulink model Grouping into subsystems 2. Assign real-time subsystems to different CPU cores The computation blocks can be split into different computation subsystems Each of the computation subsystems will be executed on one CPU core of the real-time target The data between 2 computation subsystems is exchanged synchronously through shared memory

Simulink model Naming the subsystems GUI subsystem : SC_anyName Contains user interface blocks (scopes, displays, manual switches, constants) Runs on host PC asynchronously from the computation subsystems Not linked to a target CPU core No signal generation/No mathematical operations/No physical model ! Computation subsystems All the computational elements of the model, mathematical operations, I/O blocks, signal generators, physical models, etc… If only one (main computation subsystem) : SM_anyName Uses one CPU core Each additional computation subsystem : SS_anyName Each additional SS subsystem uses an additional CPU core

Simulink model Naming the subsystems: possible configurations SM SS SC 1 n

Simulink model Conclusion Only subsystems are allowed at the top-level of the Simulink® model SC_ subsystems are used as graphical interface SM_ and SS_ subsystems are used for computation One computation subsystem is executed on one CPU core Communication between computation subsystems is synchronous Communication between computation subsystems and GUI subsystem is asynchronous Each signal between subsystems(“wire” in Simulink®) can be a scalar (single value) or a vector (multiple values), but it must be of type double

Simulink model Adding OpComm blocks Responsible for the communication What is an OpComm block ? Responsible for the communication Between 2 computation subsystems Between computation subsystems and GUI subsystem OpComm block can be found in the RT-LAB library, in Simulink® library browser, once RT-LAB has been installed

Simulink model Adding OpComm blocks How to place OpComm blocks in the model ? All subsystems (SM, SS, SC) inputs must first go through an OpComm block before any operations can be done on the signals they are associated with.

Simulink model Adding OpComm blocks How to place OpComm blocks in the model ? The OpComm block must be inserted after the subsystems creation and renaming (SM, SS, SC) One OpComm block can accept multiple inputs in one subsystem. Double-click on the block to select the number of inputs required Each input signal can be a scalar or a vector

Simulink model Adding OpComm blocks How to place OpComm blocks in the model ? In the computation subsystems (SM or SS): One OpComm receives real-time-synchronized signals from other real-time subsystems One OpComm receives asynchronous signals from the GUI subsystem In the console subsystem (SC): One OpComm is enough in most cases More OpComm blocks (up to 25) may be inserted to receive signals from the real-time subsystems. Multiple OpComm blocks define unique “acquisition groups” with their own data acquisition parameters (decimation, frame size, …)

Simulink model Adding OpComm blocks SM_computation only receives asynchronous signals from SC_GUI  Only 1 OpComm block in SM_computation

Simulink model Adding OpComm blocks SM_computation1 only receives asynchronous signals from SC_GUI  Only 1 OpComm block in SM_computation1 SS_computation2 only receives asynchronous signals from SC_GUI  Only 1 OpComm block in SS_computation2

Simulink model Adding OpComm blocks SM_computation1 only receives asynchronous signals from SC_GUI  Only 1 OpComm block in SM SS_computation2 only receives synchronous signals from SM_computation1  Only 1 OpComm block in SS

Simulink model Adding OpComm blocks SM_computation1 receives asynchronous signals from SC_GUI and synchronous signals from SS_computation2  2 OpComm blocks in SM_computation1 SS_computation2 receives only synchronous signals from SS_computation3  Only 1 OpComm block in SS_computation2 SS_computation3 receives asynchronous signals from SC_GUI and synchronous signals from SM_computation1  2 OpComm blocks in SS_computation3

Simulink model Maximizing parallel execution yz = yz-1 + xz-1t What is a state?  it can be defined as an output (signal) which is computed only from preceding inputs or outputs. Example of blocks which introduce a state are the “integrator” and the “memory” blocks. A “gain” block does not produce a state because its output at step z depends on its input at the same step. yz = yz-1 + xz-1t yz = xz-1 yz = Axz

Simulink model Maximizing parallel execution Deadlock: “Will not execute” case RT-LAB is deadlocked! sm_subsystem waits for ss_subsystem ss_subsystem waits for sm_subsystem

Simulink model Maximizing parallel execution Serial execution : Bad case At each step, RT-LAB does the following: ss_subsystem sends to sm_subsystem computation of sm_subsystem sm_subsystem sends to ss_subsystem computation of ss_subsystem

Simulink model Maximizing parallel execution Partially parallel execution : Intermediate case At each step, RT-LAB does the following: ss_subsystem sends to sm_subsystem computation of the gain in sm_subsystem sm_subsystem sends to ss_subsystem computation of ss_subsystem and the rest of sm_subsystem

Simulink model Maximizing parallel execution Fully Parallel execution: Best case At each step, RT-LAB does the following: ss_subsystem sends to sm_subsystem sm_subsystem sends to ss_subsystem computation of both subsystems at the same time

Simulink model Setting simulation parameters Fixed-step solver

Simulink model Setting simulation parameters Fixed-step solver

 The use of fixed-step solvers is mandatory Simulink model Setting simulation parameters Variable-step solver Variable-step solvers are easier to use (the sample time is automatically determined) BUT they do not allow DETERMINISM (which is mandatory for real-time applications) : we do not know a priori how long the next step will last  The use of fixed-step solvers is mandatory

Simulink model Setting simulation parameters In the Simulink® model, menu Simulation  Configuration Parameters…

Simulink model Setting simulation parameters Set Stop time to inf : the simulation will run until user decides to stop it Set Type to Fixed-step : see previous slides Select any fixed step Solver Set the Fixed-step size : value in seconds

Simulink model Setting simulation parameters

Simulink model Executing off-line Run the model off-line and make sure no error is raised If the model does not run under Simulink®, it will not work in real-time Once the model runs off-line, we can try to build it with RT-LAB