SlideShare a Scribd company logo
1 of 57
REAL TIME EMBEDDED CONTROL SYSTEMS
USING MBD CONCEPT
Eng. Mahmoud Hussein
18-oct-19 RTECS 2019
1
Contact Person
2
 Course Instructor
 Mahmoud Hussein
 Lecturer assistant, French university
 Email: Mahmoud.ahmed2013@gmail.com
 Mobile: 01007148378
RTECS
Rules
13
RTECS
‫الذكية‬ ‫للصواريخ‬ ‫القومى‬ ‫المشروع‬
4
Which methodology will you use to develop a SAM?
A: Manually Write Assembly
B: Manually Write C-Code
C: MBD: Auto-Code Generation
RTECS
Welcome to
Real Time Embedded Control Systems
RTECS
Course Objective
6
 The course shows one design path for real time embedded systems.
 It starts by system level simulation based design.
 It ends by real time implementation of control algorithms.
RTECS
Course Syllabus
7
 Part 1 : Introduction to Matlab and Simulink
 Recognize MATLAB and Simulink Environment
 MATLAB Fundamentals and Basic Operations
 M-File and Programming Basics
 Data Visualization (2D/3D)
 State flow.
 S-function
RTECS
Course Syllabus
8
Part 2 : Basics and Modelling
 Introduction to Real Time Embedded Control Systems
 Physical System Modelling of Mechanical Systems
 Dynamic SystemAnalysis
 Physical System Modelling of Electrical Systems
 Modelling Electric Motors
RTECS
Course Syllabus
9
Part 3: Control and PID
 Control Systems
 PID Controller
 Tuning PID Controllers
 Numerical Integration
 PID Advanced Topics
 Digital Controller Design
RTECS
Course Syllabus
10
Part 4: Advanced Topics
 Embedded Coder .
 State Machine Concept.
 MathWorks Automotive Advisory Board- MAAB(Optional)
RTECS
Tools
11
 Matlab & Simulink
 Control System Toolbox
 Simulink Control Design
 State Flow
 Embedded Coder
RTECS
Domains of Appplication of Embedded
Systems
RTECS 2010 12
Control Systems
• Vehicles
• Appliances
General Computing
• ATM
• Video Games
Signal Processing
• Radar, Sonar
• Video Processing
Communication &
Networking
• Moblie Phones
• Servers
Real Time Embedded Control Systems Applications
RTECS 2010 13
Steam Turbine
Control
Flight Control
Print Head
Control
Navigation
Control
Engine Control
Dryer Cycle
Control
Medical Device
Control
Model Based Design
RTECS
Model Based Design
• In Model-Based Design, a system model is at the center of the
development process, from requirements development, through
design, implementation, and testing.
• The model is a graphical representations of math-based simulation
methods.
RTECS 2019 15
Elements of Model Based Design
RTECS 2019 16
Elements of Model Based Design
17
Model
Executable
Specificatio
n
Design with
Simulation
Automatic
Code
Generation
Continuous
Test and
Verification
Executable Specification
• Executable
• The model can be simulated to illustrate functional behavior.
• Specification
• An explicit design intended to meet certain requirements.
18
Elements of Model Based Design
19
Model
Executable
Specification
Design with
Simulation
Automatic
Code
Generation
Continuous
Test and
Verification
Design with Simulation
• Use simulate during the design stage to verify that the model meets
the requirements, detect and correct errors early in the design stage
20
Elements of Model Based Design
21
Model
Executable
Specificatio
n
Design with
Simulation
Automatic
Code
Generation
Continuous
Test and
Verification
Coding Traditional Approach
RTECS 2010 22
Problems:
• Communication
• Ambiguity of specs
• Resource conflicts
 Large turnaround time!
Production
Code
Specs
Function Developer
 algorithm
knowledge
#include <math.h>
if (a > 0)
ki = 0.4*x+z1;
Software Specialist
 implementation
& coding knowledge
Time
Automatic Code Generation
RTECS 2010 23
Function Developer
 algorithm
knowledge
Software Specialist
 implementation
knowledge
Coding knowledge:
• ANSI-C
• language extensions
• assembly language
• processor architecture
 … and how to
optimally use it!
Code Generator
 coding knowledge
Automatic Code Generation Features
• Scheduling and integration with RTOS
• MISRA C
• Autosar
• Customizable code
24
Automatic Code Generators
• TargetLink from dSPACE, since 1999
• Real-Time Workshop Embedded Coder from
MathWorks
RTECS 2010 25
Automatic Code Generation
RTECS 2019 26
Implementation Model
(fixed-point)
C CodeCode generator
Compiler
(Linker)
Host PC
Target
Physical Model
(floating-point)
Cross-compiler
(Linker / Loader)
Automatic Code Generation
RTECS 2019 27
Implementation Model
(fixed-point)
C CodeCode generator
Compiler
(Linker)
Host PC
Target
Physical Model
(floating-point)
Cross-compiler
(Linker / Loader)
Elements of Model Based Design
RTECS 2019 28
Model
Executable
Specification
Design with
Simulation
Automatic
Code
Generation
Continuous
Test and
Verification
Continuous Test and Verification
• Deign test cases to test the model
• Reuse test cases to test software implementation
• Simulation models enable to test conditions that would be
destructive or cost-prohibitive to run in the lab or on the road
• Automatically generating test cases from the model to ensure
Modified Condition/Decision Coverage (MC/DC)
• Writing the MC/DC tests would take as least as long as the original design
effort
RTECS 2019 29
RTECS 2010
30



test output
result
comparison
physical model
implementation model
test stimuli
C code (target)
ECU
MiL (physical model)
MiL (impl. model)
SiL
PiL
C code (host)
Model in the Loop (MIL)
• Proof of Concept and Design Optimization
• Pure simulation
• Modelling of both the application and the
environment may be wrong
31
Controller
running in e.g. Simulink
Plant
running in e.g. Simulink
Software in the Loop (SIL)
• Compiled application
• Simulation at an early stage
• Accelerated simulation
• Low cost & short development time
• Non real-time
RTECS 2010 32
Controller
running as binary
Plant
running in e.g. Simulink
Processor in the Loop (PIL)
• Determining Memory Usage
• Determining the time needed for the Algorithm
• Assures that the tool chain does not cause problems
• Determining problems related to the resolution of
the processor (16 bits, 32 bits, fixed point)
33
Controller
running on target HW
Plant
running in e.g. Simulink
MIL SIL PIL
RTECS 2010 34
Hardware in the Loop (HIL)
• HIL system replaces the real world environment
• Production hardware can be tested without any
changes
• Application is executed in real time on an
appropriate hardware platform
RTECS 2010 35
Controller
running on target
Plant
Running in real-time on a HIL
Simulator
HIL Simulator: dSPACE
RTECS 2010
36
Dynamic
Models
Processor Board
I/O Board
GUI and
Automation
Diagn. Tool
ECU
Loads
FIU
User Interface for Interactive Use of the HIL System
RTECS 2010 37
Networked HIL Simulation
38
Vehicle
dynamics
Comfort
(central unit)
Transmission Engine
GigaLink
CAN
2004 Audi A6
Networked HIL Simulation
RTECS 2010 39
Mercedes-Benz 2005 A-Class
Breadboard Table
appr. 8 powertrain
and chassis ECUs
appr. 20 body ECUs
What is a Model?
RTECS 2014
15
RTECS
What is a Model?
16
A model is a representation of a real system focusing onsome
important aspects
 Scale model
 Represents geometric proportions
 Flight simulator
 Focuses on flight dynamics
RTECS
What is a Model?
17
 In Model-Based Design, a system model is at the center of the
development process, from requirements development, through
design, implementation, and testing.
 What is meant here by model is a graphical representations of
the system
RTECS
Model Based Design Rationale
18
 Think: can you draw a rectangle with 3 lines
RTECS
Model Based Design Rationale
19
 Executable specification
RTECS
Model Based Design Rationale
20
 Automatic Code
Generation
RTECS
Model Based Design Rationale
21
1. Graphical Representation
2. Executable Specification
3. Automatic Code Generation
RTECS
Physical Systems
RTECS
Definition of System
23
 From engineering point of view, a system is defined as an
interconnection of many components that act together to
perform a certain objective
 Automobile
 Machine tool
 Robot
RTECS
Physical Systems Classification
24
Physical
System
Static System Dynamic
System
RTECS
Static System
25
 Output of the system depends only on the current input
 The system has no memory
RTECS
Dynamic System
26
 Output of the system depends on the current input as well as
previous inputs/outputs
 The system has internal memory
A dynamic system can be represented mathematically
using differential equations
RTECS
What is a Real Time System?
RTECS
Real-Time System
43
 A real-time system is a software system where the correct
functioning of the system depends not only on the results
produced by the system but also on the time at which these
results are produced.
 The system has "real-time constraints"
RTECS
Hard Real-Time System
44
 A hard real-time system is a system whose operation is incorrectif
results are not produced according to the timing specification.
 Car engine control system is a hard real-time system
 because a delayed signal may cause engine failure or damage
 Flight Control System
 Airbag crash detection system
RTECS
Hard Real-Time System
45
 Delay = Failure
 Time granularity
 Millisecond
 RequiredAnalysis
 Worst possible scenario
 Need for redundancy
 To meet safety requirements
RTECS
Hard Real-Time System Example
46
 Airbag crash detection system
 Airbag must inflate between 10 and 20 msec from the detection of a crash
 Not too early—since this would make the airbag deflate before it can catch
the passenger
 Nor too late—since the airbag could then injure the passenger by blowing up
in his face and/or catch him too late to prevent his head from banging into the
steering wheel
RTECS
Soft Real-Time System
47
 A soft real-time system is a system whose operation is
degraded if results are not produced according to the specified
timing requirements.
 Non-safety-critical system
 Keypad input
 Message visualization
 System status representation
RTECS

More Related Content

What's hot

MiL Testing of Highly Configurable Continuous Controllers
MiL Testing of Highly Configurable Continuous ControllersMiL Testing of Highly Configurable Continuous Controllers
MiL Testing of Highly Configurable Continuous ControllersLionel Briand
 
Model-Based Design For Motor Control Development
Model-Based Design For Motor Control DevelopmentModel-Based Design For Motor Control Development
Model-Based Design For Motor Control DevelopmentThe Hartford
 
Multicore and AUTOSAR
Multicore and AUTOSARMulticore and AUTOSAR
Multicore and AUTOSARHansang Lee
 
Autosar basics by ARCCORE
Autosar basics by ARCCOREAutosar basics by ARCCORE
Autosar basics by ARCCOREARCCORE
 
Automotive embedded systems part8 v1
Automotive embedded systems part8 v1Automotive embedded systems part8 v1
Automotive embedded systems part8 v1Keroles karam khalil
 
Webinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore SystemsWebinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore SystemsKPIT
 
Autosar fundamental
Autosar fundamentalAutosar fundamental
Autosar fundamentalOmkar Rane
 
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdfAUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdfSalaheddineelabbassi
 
UDS: Vehicle Diagnostics in AUTOSAR Software Architecture
UDS: Vehicle Diagnostics in AUTOSAR Software Architecture UDS: Vehicle Diagnostics in AUTOSAR Software Architecture
UDS: Vehicle Diagnostics in AUTOSAR Software Architecture Embitel Technologies (I) PVT LTD
 
Adaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR ArchitectureAdaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR ArchitectureAdaCore
 

What's hot (20)

Autosar Basics hand book_v1
Autosar Basics  hand book_v1Autosar Basics  hand book_v1
Autosar Basics hand book_v1
 
MiL Testing of Highly Configurable Continuous Controllers
MiL Testing of Highly Configurable Continuous ControllersMiL Testing of Highly Configurable Continuous Controllers
MiL Testing of Highly Configurable Continuous Controllers
 
Model-Based Design For Motor Control Development
Model-Based Design For Motor Control DevelopmentModel-Based Design For Motor Control Development
Model-Based Design For Motor Control Development
 
AUToSAR introduction
AUToSAR introductionAUToSAR introduction
AUToSAR introduction
 
Communication stack
Communication stackCommunication stack
Communication stack
 
Multicore and AUTOSAR
Multicore and AUTOSARMulticore and AUTOSAR
Multicore and AUTOSAR
 
Automative basics v3
Automative basics v3Automative basics v3
Automative basics v3
 
Autosar basics by ARCCORE
Autosar basics by ARCCOREAutosar basics by ARCCORE
Autosar basics by ARCCORE
 
Automotive embedded systems part8 v1
Automotive embedded systems part8 v1Automotive embedded systems part8 v1
Automotive embedded systems part8 v1
 
Embedded Systems in Automotive
Embedded Systems in Automotive Embedded Systems in Automotive
Embedded Systems in Automotive
 
Thesis Presentation
Thesis PresentationThesis Presentation
Thesis Presentation
 
UDS PPT
UDS PPTUDS PPT
UDS PPT
 
Webinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore SystemsWebinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore Systems
 
Introduction to stm32-part1
Introduction to stm32-part1Introduction to stm32-part1
Introduction to stm32-part1
 
Autosar fundamental
Autosar fundamentalAutosar fundamental
Autosar fundamental
 
Robot control
Robot controlRobot control
Robot control
 
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdfAUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
 
ISO 26262: Automotive Functional Safety
ISO 26262: Automotive Functional SafetyISO 26262: Automotive Functional Safety
ISO 26262: Automotive Functional Safety
 
UDS: Vehicle Diagnostics in AUTOSAR Software Architecture
UDS: Vehicle Diagnostics in AUTOSAR Software Architecture UDS: Vehicle Diagnostics in AUTOSAR Software Architecture
UDS: Vehicle Diagnostics in AUTOSAR Software Architecture
 
Adaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR ArchitectureAdaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR Architecture
 

Similar to Model based design-Hardware in loop-software in loop

To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...ijsrd.com
 
Innovate with confidence – Functional Verification of Embedded Algorithms
Innovate with confidence – Functional Verification of Embedded AlgorithmsInnovate with confidence – Functional Verification of Embedded Algorithms
Innovate with confidence – Functional Verification of Embedded AlgorithmsJoachim Schlosser
 
It‘s Math That Drives Things – Simulink as Simulation and Modeling Environment
It‘s Math That Drives Things – Simulink as Simulation and Modeling EnvironmentIt‘s Math That Drives Things – Simulink as Simulation and Modeling Environment
It‘s Math That Drives Things – Simulink as Simulation and Modeling EnvironmentJoachim Schlosser
 
Real-Time Engineering Simulators
Real-Time Engineering SimulatorsReal-Time Engineering Simulators
Real-Time Engineering SimulatorsGSE Systems, Inc.
 
Engage with...Romax | Driving the Electric Revolution Webinar
Engage with...Romax | Driving the Electric Revolution WebinarEngage with...Romax | Driving the Electric Revolution Webinar
Engage with...Romax | Driving the Electric Revolution WebinarKTN
 
Functional verification techniques EW16 session
Functional verification techniques  EW16 sessionFunctional verification techniques  EW16 session
Functional verification techniques EW16 sessionSameh El-Ashry
 
Using Modelica and FMI to evaluate requirements compliance early in system d...
Using Modelica and FMI to evaluate requirements compliance early in system d...Using Modelica and FMI to evaluate requirements compliance early in system d...
Using Modelica and FMI to evaluate requirements compliance early in system d...Modelon
 
Model-Based Design & Analysis.ppt
Model-Based Design & Analysis.pptModel-Based Design & Analysis.ppt
Model-Based Design & Analysis.pptRajuRaju183149
 
Inception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRMInception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRMATHAL Public Relations & Marketing
 
Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon
 
10 good reasons to go for model-based systems engineering in your organization
10 good reasons to go for model-based systems engineering in your organization10 good reasons to go for model-based systems engineering in your organization
10 good reasons to go for model-based systems engineering in your organizationSiemens PLM Software
 
Model Based System Design PPT MODULE IV.pptx
Model Based System Design PPT MODULE IV.pptxModel Based System Design PPT MODULE IV.pptx
Model Based System Design PPT MODULE IV.pptxssuseraaa4d6
 
DCS_Check-Out_and_Operator_Training_with_HYSYS_Dynamics_White_v1.3.pdf
DCS_Check-Out_and_Operator_Training_with_HYSYS_Dynamics_White_v1.3.pdfDCS_Check-Out_and_Operator_Training_with_HYSYS_Dynamics_White_v1.3.pdf
DCS_Check-Out_and_Operator_Training_with_HYSYS_Dynamics_White_v1.3.pdfOkeke Livinus
 
Mechatronics design team project v2
Mechatronics design team project v2Mechatronics design team project v2
Mechatronics design team project v2Waleed El-Badry
 
Design of Mechatronics System
Design of Mechatronics SystemDesign of Mechatronics System
Design of Mechatronics SystemVeerakumar S
 
System Concept Simulation for Concurrent Engineering
System Concept Simulation for Concurrent EngineeringSystem Concept Simulation for Concurrent Engineering
System Concept Simulation for Concurrent EngineeringFinmeccanica
 

Similar to Model based design-Hardware in loop-software in loop (20)

To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
 
Innovate with confidence – Functional Verification of Embedded Algorithms
Innovate with confidence – Functional Verification of Embedded AlgorithmsInnovate with confidence – Functional Verification of Embedded Algorithms
Innovate with confidence – Functional Verification of Embedded Algorithms
 
It‘s Math That Drives Things – Simulink as Simulation and Modeling Environment
It‘s Math That Drives Things – Simulink as Simulation and Modeling EnvironmentIt‘s Math That Drives Things – Simulink as Simulation and Modeling Environment
It‘s Math That Drives Things – Simulink as Simulation and Modeling Environment
 
Real-Time Engineering Simulators
Real-Time Engineering SimulatorsReal-Time Engineering Simulators
Real-Time Engineering Simulators
 
Engage with...Romax | Driving the Electric Revolution Webinar
Engage with...Romax | Driving the Electric Revolution WebinarEngage with...Romax | Driving the Electric Revolution Webinar
Engage with...Romax | Driving the Electric Revolution Webinar
 
Functional verification techniques EW16 session
Functional verification techniques  EW16 sessionFunctional verification techniques  EW16 session
Functional verification techniques EW16 session
 
Using Modelica and FMI to evaluate requirements compliance early in system d...
Using Modelica and FMI to evaluate requirements compliance early in system d...Using Modelica and FMI to evaluate requirements compliance early in system d...
Using Modelica and FMI to evaluate requirements compliance early in system d...
 
Model-Based Design & Analysis.ppt
Model-Based Design & Analysis.pptModel-Based Design & Analysis.ppt
Model-Based Design & Analysis.ppt
 
Inception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRMInception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRM
 
CIM unit-1
CIM  unit-1CIM  unit-1
CIM unit-1
 
Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
10 good reasons to go for model-based systems engineering in your organization
10 good reasons to go for model-based systems engineering in your organization10 good reasons to go for model-based systems engineering in your organization
10 good reasons to go for model-based systems engineering in your organization
 
Model Based System Design PPT MODULE IV.pptx
Model Based System Design PPT MODULE IV.pptxModel Based System Design PPT MODULE IV.pptx
Model Based System Design PPT MODULE IV.pptx
 
Mechatronics engineer
Mechatronics engineerMechatronics engineer
Mechatronics engineer
 
shwetabisht
shwetabishtshwetabisht
shwetabisht
 
DCS_Check-Out_and_Operator_Training_with_HYSYS_Dynamics_White_v1.3.pdf
DCS_Check-Out_and_Operator_Training_with_HYSYS_Dynamics_White_v1.3.pdfDCS_Check-Out_and_Operator_Training_with_HYSYS_Dynamics_White_v1.3.pdf
DCS_Check-Out_and_Operator_Training_with_HYSYS_Dynamics_White_v1.3.pdf
 
Mechatronics design team project v2
Mechatronics design team project v2Mechatronics design team project v2
Mechatronics design team project v2
 
Design of Mechatronics System
Design of Mechatronics SystemDesign of Mechatronics System
Design of Mechatronics System
 
System Concept Simulation for Concurrent Engineering
System Concept Simulation for Concurrent EngineeringSystem Concept Simulation for Concurrent Engineering
System Concept Simulation for Concurrent Engineering
 

More from Mahmoud Hussein (20)

07 modelling.electric.motors
07 modelling.electric.motors07 modelling.electric.motors
07 modelling.electric.motors
 
Dc dc converter
Dc dc converterDc dc converter
Dc dc converter
 
08 pid.controller
08 pid.controller08 pid.controller
08 pid.controller
 
06 control.systems
06 control.systems06 control.systems
06 control.systems
 
05 tuning.pid.controllers
05 tuning.pid.controllers05 tuning.pid.controllers
05 tuning.pid.controllers
 
02 physical.system.modelling mechanical.systems.
02 physical.system.modelling mechanical.systems.02 physical.system.modelling mechanical.systems.
02 physical.system.modelling mechanical.systems.
 
03 dynamic.system.
03 dynamic.system.03 dynamic.system.
03 dynamic.system.
 
Lecture 02 laplace transformation
Lecture 02 laplace transformationLecture 02 laplace transformation
Lecture 02 laplace transformation
 
Mbd2
Mbd2Mbd2
Mbd2
 
Ac drive basics
Ac drive basicsAc drive basics
Ac drive basics
 
Velocity kinematics
Velocity kinematicsVelocity kinematics
Velocity kinematics
 
MPI Communication
MPI CommunicationMPI Communication
MPI Communication
 
ERROR
ERRORERROR
ERROR
 
Analogue Module
Analogue ModuleAnalogue Module
Analogue Module
 
Function Block & Organization Block
Function Block & Organization BlockFunction Block & Organization Block
Function Block & Organization Block
 
Data Block
Data BlockData Block
Data Block
 
Declaration Table
Declaration TableDeclaration Table
Declaration Table
 
Math operation
Math operationMath operation
Math operation
 
Industrial communication
Industrial communicationIndustrial communication
Industrial communication
 
Computer vision
Computer visionComputer vision
Computer vision
 

Recently uploaded

꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂Hot Call Girls In Sector 58 (Noida)
 
Call Girls Vastrapur 7397865700 Ridhima Hire Me Full Night
Call Girls Vastrapur 7397865700 Ridhima Hire Me Full NightCall Girls Vastrapur 7397865700 Ridhima Hire Me Full Night
Call Girls Vastrapur 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
原版1:1复刻俄亥俄州立大学毕业证OSU毕业证留信学历认证
原版1:1复刻俄亥俄州立大学毕业证OSU毕业证留信学历认证原版1:1复刻俄亥俄州立大学毕业证OSU毕业证留信学历认证
原版1:1复刻俄亥俄州立大学毕业证OSU毕业证留信学历认证jdkhjh
 
(办理学位证)(Rice毕业证)莱斯大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Rice毕业证)莱斯大学毕业证成绩单修改留信学历认证原版一模一样(办理学位证)(Rice毕业证)莱斯大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Rice毕业证)莱斯大学毕业证成绩单修改留信学历认证原版一模一样gfghbihg
 
Independent Andheri Call Girls 9833363713
Independent Andheri Call Girls 9833363713Independent Andheri Call Girls 9833363713
Independent Andheri Call Girls 9833363713Komal Khan
 
( Best ) Genuine Call Girls In Mandi House =DELHI-| 8377087607
( Best ) Genuine Call Girls In Mandi House =DELHI-| 8377087607( Best ) Genuine Call Girls In Mandi House =DELHI-| 8377087607
( Best ) Genuine Call Girls In Mandi House =DELHI-| 8377087607dollysharma2066
 
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kasba 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Roomdivyansh0kumar0
 
Not Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsNot Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsFifth Gear Automotive
 
UNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLESUNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLESDineshKumar4165
 
What Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
What Causes DPF Failure In VW Golf Cars & How Can They Be PreventedWhat Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
What Causes DPF Failure In VW Golf Cars & How Can They Be PreventedAutobahn Automotive Service
 
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样gfghbihg
 
call girls in G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in  G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in  G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一fhhkjh
 
(办理学位证)墨尔本大学毕业证(Unimelb毕业证书)成绩单留信学历认证原版一模一样
(办理学位证)墨尔本大学毕业证(Unimelb毕业证书)成绩单留信学历认证原版一模一样(办理学位证)墨尔本大学毕业证(Unimelb毕业证书)成绩单留信学历认证原版一模一样
(办理学位证)墨尔本大学毕业证(Unimelb毕业证书)成绩单留信学历认证原版一模一样whjjkkk
 
如何办理(UC毕业证书)堪培拉大学毕业证毕业证成绩单原版一比一
如何办理(UC毕业证书)堪培拉大学毕业证毕业证成绩单原版一比一如何办理(UC毕业证书)堪培拉大学毕业证毕业证成绩单原版一比一
如何办理(UC毕业证书)堪培拉大学毕业证毕业证成绩单原版一比一fjjwgk
 
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 HybridHyundai Motor Group
 
What Could Cause A VW Tiguan's Radiator Fan To Stop Working
What Could Cause A VW Tiguan's Radiator Fan To Stop WorkingWhat Could Cause A VW Tiguan's Radiator Fan To Stop Working
What Could Cause A VW Tiguan's Radiator Fan To Stop WorkingEscondido German Auto
 
Call Girls in Karachi | +923081633338 | Karachi Call Girls
Call Girls in Karachi  | +923081633338 | Karachi Call GirlsCall Girls in Karachi  | +923081633338 | Karachi Call Girls
Call Girls in Karachi | +923081633338 | Karachi Call GirlsAyesha Khan
 

Recently uploaded (20)

꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
 
Call Girls Vastrapur 7397865700 Ridhima Hire Me Full Night
Call Girls Vastrapur 7397865700 Ridhima Hire Me Full NightCall Girls Vastrapur 7397865700 Ridhima Hire Me Full Night
Call Girls Vastrapur 7397865700 Ridhima Hire Me Full Night
 
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
原版1:1复刻俄亥俄州立大学毕业证OSU毕业证留信学历认证
原版1:1复刻俄亥俄州立大学毕业证OSU毕业证留信学历认证原版1:1复刻俄亥俄州立大学毕业证OSU毕业证留信学历认证
原版1:1复刻俄亥俄州立大学毕业证OSU毕业证留信学历认证
 
(办理学位证)(Rice毕业证)莱斯大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Rice毕业证)莱斯大学毕业证成绩单修改留信学历认证原版一模一样(办理学位证)(Rice毕业证)莱斯大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Rice毕业证)莱斯大学毕业证成绩单修改留信学历认证原版一模一样
 
Independent Andheri Call Girls 9833363713
Independent Andheri Call Girls 9833363713Independent Andheri Call Girls 9833363713
Independent Andheri Call Girls 9833363713
 
( Best ) Genuine Call Girls In Mandi House =DELHI-| 8377087607
( Best ) Genuine Call Girls In Mandi House =DELHI-| 8377087607( Best ) Genuine Call Girls In Mandi House =DELHI-| 8377087607
( Best ) Genuine Call Girls In Mandi House =DELHI-| 8377087607
 
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kasba 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Room
 
Not Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsNot Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These Symptoms
 
UNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLESUNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLES
 
What Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
What Causes DPF Failure In VW Golf Cars & How Can They Be PreventedWhat Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
What Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
 
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
 
call girls in G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in  G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in  G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
 
(办理学位证)墨尔本大学毕业证(Unimelb毕业证书)成绩单留信学历认证原版一模一样
(办理学位证)墨尔本大学毕业证(Unimelb毕业证书)成绩单留信学历认证原版一模一样(办理学位证)墨尔本大学毕业证(Unimelb毕业证书)成绩单留信学历认证原版一模一样
(办理学位证)墨尔本大学毕业证(Unimelb毕业证书)成绩单留信学历认证原版一模一样
 
Hot Sexy call girls in Pira Garhi🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Pira Garhi🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Pira Garhi🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Pira Garhi🔝 9953056974 🔝 escort Service
 
如何办理(UC毕业证书)堪培拉大学毕业证毕业证成绩单原版一比一
如何办理(UC毕业证书)堪培拉大学毕业证毕业证成绩单原版一比一如何办理(UC毕业证书)堪培拉大学毕业证毕业证成绩单原版一比一
如何办理(UC毕业证书)堪培拉大学毕业证毕业证成绩单原版一比一
 
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
 
What Could Cause A VW Tiguan's Radiator Fan To Stop Working
What Could Cause A VW Tiguan's Radiator Fan To Stop WorkingWhat Could Cause A VW Tiguan's Radiator Fan To Stop Working
What Could Cause A VW Tiguan's Radiator Fan To Stop Working
 
Call Girls in Karachi | +923081633338 | Karachi Call Girls
Call Girls in Karachi  | +923081633338 | Karachi Call GirlsCall Girls in Karachi  | +923081633338 | Karachi Call Girls
Call Girls in Karachi | +923081633338 | Karachi Call Girls
 

Model based design-Hardware in loop-software in loop

  • 1. REAL TIME EMBEDDED CONTROL SYSTEMS USING MBD CONCEPT Eng. Mahmoud Hussein 18-oct-19 RTECS 2019 1
  • 2. Contact Person 2  Course Instructor  Mahmoud Hussein  Lecturer assistant, French university  Email: Mahmoud.ahmed2013@gmail.com  Mobile: 01007148378 RTECS
  • 4. ‫الذكية‬ ‫للصواريخ‬ ‫القومى‬ ‫المشروع‬ 4 Which methodology will you use to develop a SAM? A: Manually Write Assembly B: Manually Write C-Code C: MBD: Auto-Code Generation RTECS
  • 5. Welcome to Real Time Embedded Control Systems RTECS
  • 6. Course Objective 6  The course shows one design path for real time embedded systems.  It starts by system level simulation based design.  It ends by real time implementation of control algorithms. RTECS
  • 7. Course Syllabus 7  Part 1 : Introduction to Matlab and Simulink  Recognize MATLAB and Simulink Environment  MATLAB Fundamentals and Basic Operations  M-File and Programming Basics  Data Visualization (2D/3D)  State flow.  S-function RTECS
  • 8. Course Syllabus 8 Part 2 : Basics and Modelling  Introduction to Real Time Embedded Control Systems  Physical System Modelling of Mechanical Systems  Dynamic SystemAnalysis  Physical System Modelling of Electrical Systems  Modelling Electric Motors RTECS
  • 9. Course Syllabus 9 Part 3: Control and PID  Control Systems  PID Controller  Tuning PID Controllers  Numerical Integration  PID Advanced Topics  Digital Controller Design RTECS
  • 10. Course Syllabus 10 Part 4: Advanced Topics  Embedded Coder .  State Machine Concept.  MathWorks Automotive Advisory Board- MAAB(Optional) RTECS
  • 11. Tools 11  Matlab & Simulink  Control System Toolbox  Simulink Control Design  State Flow  Embedded Coder RTECS
  • 12. Domains of Appplication of Embedded Systems RTECS 2010 12 Control Systems • Vehicles • Appliances General Computing • ATM • Video Games Signal Processing • Radar, Sonar • Video Processing Communication & Networking • Moblie Phones • Servers
  • 13. Real Time Embedded Control Systems Applications RTECS 2010 13 Steam Turbine Control Flight Control Print Head Control Navigation Control Engine Control Dryer Cycle Control Medical Device Control
  • 15. Model Based Design • In Model-Based Design, a system model is at the center of the development process, from requirements development, through design, implementation, and testing. • The model is a graphical representations of math-based simulation methods. RTECS 2019 15
  • 16. Elements of Model Based Design RTECS 2019 16
  • 17. Elements of Model Based Design 17 Model Executable Specificatio n Design with Simulation Automatic Code Generation Continuous Test and Verification
  • 18. Executable Specification • Executable • The model can be simulated to illustrate functional behavior. • Specification • An explicit design intended to meet certain requirements. 18
  • 19. Elements of Model Based Design 19 Model Executable Specification Design with Simulation Automatic Code Generation Continuous Test and Verification
  • 20. Design with Simulation • Use simulate during the design stage to verify that the model meets the requirements, detect and correct errors early in the design stage 20
  • 21. Elements of Model Based Design 21 Model Executable Specificatio n Design with Simulation Automatic Code Generation Continuous Test and Verification
  • 22. Coding Traditional Approach RTECS 2010 22 Problems: • Communication • Ambiguity of specs • Resource conflicts  Large turnaround time! Production Code Specs Function Developer  algorithm knowledge #include <math.h> if (a > 0) ki = 0.4*x+z1; Software Specialist  implementation & coding knowledge Time
  • 23. Automatic Code Generation RTECS 2010 23 Function Developer  algorithm knowledge Software Specialist  implementation knowledge Coding knowledge: • ANSI-C • language extensions • assembly language • processor architecture  … and how to optimally use it! Code Generator  coding knowledge
  • 24. Automatic Code Generation Features • Scheduling and integration with RTOS • MISRA C • Autosar • Customizable code 24
  • 25. Automatic Code Generators • TargetLink from dSPACE, since 1999 • Real-Time Workshop Embedded Coder from MathWorks RTECS 2010 25
  • 26. Automatic Code Generation RTECS 2019 26 Implementation Model (fixed-point) C CodeCode generator Compiler (Linker) Host PC Target Physical Model (floating-point) Cross-compiler (Linker / Loader)
  • 27. Automatic Code Generation RTECS 2019 27 Implementation Model (fixed-point) C CodeCode generator Compiler (Linker) Host PC Target Physical Model (floating-point) Cross-compiler (Linker / Loader)
  • 28. Elements of Model Based Design RTECS 2019 28 Model Executable Specification Design with Simulation Automatic Code Generation Continuous Test and Verification
  • 29. Continuous Test and Verification • Deign test cases to test the model • Reuse test cases to test software implementation • Simulation models enable to test conditions that would be destructive or cost-prohibitive to run in the lab or on the road • Automatically generating test cases from the model to ensure Modified Condition/Decision Coverage (MC/DC) • Writing the MC/DC tests would take as least as long as the original design effort RTECS 2019 29
  • 30. RTECS 2010 30    test output result comparison physical model implementation model test stimuli C code (target) ECU MiL (physical model) MiL (impl. model) SiL PiL C code (host)
  • 31. Model in the Loop (MIL) • Proof of Concept and Design Optimization • Pure simulation • Modelling of both the application and the environment may be wrong 31 Controller running in e.g. Simulink Plant running in e.g. Simulink
  • 32. Software in the Loop (SIL) • Compiled application • Simulation at an early stage • Accelerated simulation • Low cost & short development time • Non real-time RTECS 2010 32 Controller running as binary Plant running in e.g. Simulink
  • 33. Processor in the Loop (PIL) • Determining Memory Usage • Determining the time needed for the Algorithm • Assures that the tool chain does not cause problems • Determining problems related to the resolution of the processor (16 bits, 32 bits, fixed point) 33 Controller running on target HW Plant running in e.g. Simulink
  • 34. MIL SIL PIL RTECS 2010 34
  • 35. Hardware in the Loop (HIL) • HIL system replaces the real world environment • Production hardware can be tested without any changes • Application is executed in real time on an appropriate hardware platform RTECS 2010 35 Controller running on target Plant Running in real-time on a HIL Simulator
  • 36. HIL Simulator: dSPACE RTECS 2010 36 Dynamic Models Processor Board I/O Board GUI and Automation Diagn. Tool ECU Loads FIU
  • 37. User Interface for Interactive Use of the HIL System RTECS 2010 37
  • 38. Networked HIL Simulation 38 Vehicle dynamics Comfort (central unit) Transmission Engine GigaLink CAN 2004 Audi A6
  • 39. Networked HIL Simulation RTECS 2010 39 Mercedes-Benz 2005 A-Class Breadboard Table appr. 8 powertrain and chassis ECUs appr. 20 body ECUs
  • 40. What is a Model? RTECS 2014 15 RTECS
  • 41. What is a Model? 16 A model is a representation of a real system focusing onsome important aspects  Scale model  Represents geometric proportions  Flight simulator  Focuses on flight dynamics RTECS
  • 42. What is a Model? 17  In Model-Based Design, a system model is at the center of the development process, from requirements development, through design, implementation, and testing.  What is meant here by model is a graphical representations of the system RTECS
  • 43. Model Based Design Rationale 18  Think: can you draw a rectangle with 3 lines RTECS
  • 44. Model Based Design Rationale 19  Executable specification RTECS
  • 45. Model Based Design Rationale 20  Automatic Code Generation RTECS
  • 46. Model Based Design Rationale 21 1. Graphical Representation 2. Executable Specification 3. Automatic Code Generation RTECS
  • 48. Definition of System 23  From engineering point of view, a system is defined as an interconnection of many components that act together to perform a certain objective  Automobile  Machine tool  Robot RTECS
  • 50. Static System 25  Output of the system depends only on the current input  The system has no memory RTECS
  • 51. Dynamic System 26  Output of the system depends on the current input as well as previous inputs/outputs  The system has internal memory A dynamic system can be represented mathematically using differential equations RTECS
  • 52. What is a Real Time System? RTECS
  • 53. Real-Time System 43  A real-time system is a software system where the correct functioning of the system depends not only on the results produced by the system but also on the time at which these results are produced.  The system has "real-time constraints" RTECS
  • 54. Hard Real-Time System 44  A hard real-time system is a system whose operation is incorrectif results are not produced according to the timing specification.  Car engine control system is a hard real-time system  because a delayed signal may cause engine failure or damage  Flight Control System  Airbag crash detection system RTECS
  • 55. Hard Real-Time System 45  Delay = Failure  Time granularity  Millisecond  RequiredAnalysis  Worst possible scenario  Need for redundancy  To meet safety requirements RTECS
  • 56. Hard Real-Time System Example 46  Airbag crash detection system  Airbag must inflate between 10 and 20 msec from the detection of a crash  Not too early—since this would make the airbag deflate before it can catch the passenger  Nor too late—since the airbag could then injure the passenger by blowing up in his face and/or catch him too late to prevent his head from banging into the steering wheel RTECS
  • 57. Soft Real-Time System 47  A soft real-time system is a system whose operation is degraded if results are not produced according to the specified timing requirements.  Non-safety-critical system  Keypad input  Message visualization  System status representation RTECS

Editor's Notes

  1. General Computing – Applications similar to desktop computing, but in an embedded package – Video games, set top boxes, wearable computers, automatic tellers • Control Systems – Closed loop feedback control of real time system – Vehicle engines, chemical processes, nuclear power, flight control • Signal Processing – Computations involving large data streams – Radar, Sonar, video compression • Communication & Networking – Switching and information transmission – Telephone system, Internet
  2. The aim of the automated SiL tests is to obtain early validation of software components that are already integrated.