Professional Documents
Culture Documents
Validation of Desktop Simulation - The Path Towards Real-Time Simulation
Validation of Desktop Simulation - The Path Towards Real-Time Simulation
Janosch Marquart
November 17th, 2021
© 2019 Speedgoat GmbH 1
VEHICLE Webinar n°3 – Hochschule Karlsruhe
Janosch Marquart
Technical Sales / Academia
2
Energy Management Systems
3
Where is it used?
Industries Relying on Real-Time Simulation and Testing
Electrification
Automotive Aerospace
4
Key Takeaways
5
Why Real-Time Simulation and Testing?
Real-Time Enabled Model-Based Design
Fault Restbus Virtual
Bypassing Calibration
Insertion Simulation Commissioning
Controls Integration Testing
Early Design Prototyping Implementation Deployment
with Digital Twins
Desktop
Computer
Model-Based Design
6
Simplify Your Workflow
Deliver Better Through Full Integration
I/O, protocols,
scheduling,
multi-thread, ...
7
Unify Desktop and Real-Time Simulation and Testing
Desktop
Test & Measurement
Plant Simulation
Supervisory Logic
Control Algorithms
Real-Time
I/O Connectivity
Instrumentation
Automated Testing
8
With Simulink Real-Time™ by MathWorks
Desktop
Test & Measurement
Plant Simulation
Supervisory Logic
Control Algorithms
Real-Time
I/O Connectivity
Instrumentation
Automated Testing
9
and Versatile Speedgoat Hardware
Desktop
Test & Measurement
Plant Simulation
Supervisory Logic
Control Algorithms
Real-Time
I/O Connectivity
Instrumentation
Automated Testing
10
Two Companies Form a Turnkey Solution
MathWorks Speedgoat
Simulink Real-Time Real-time Target Machines
11
Success Story: Leclanché
Next-Gen Li-Ion Battery Packs for Autonomous Vehicles
Challenge
Unable to test and verify new BMS algorithms in realistic operating
conditions before connecting to actual battery packs.
Late bug discovery and no preliminary testing can damage batteries
Poor development tool compatibility leading to manual testing
Solution
Use Simulink and Speedgoat products for HIL testing of BMS
Test platform with fault insertion, CAN communication, and
Speedgoat battery cell emulators
Use Simulink Test to thoroughly validate BMS and
battery state estimation algorithms (SoC, SoH, etc.)
12
Energy Management Systems
13
Real-Time Testing for Energy Management System
14
Hardware-in-the-Loop Testing of Battery Management Systems
WHY?
Charge-discharge cycles
may take hours
Fault-testing:
Reproducibility and Safety
15
Hardware-in-the-Loop Testing of Battery Management Systems
16
Hardware-in-the-Loop Testing of Battery Management Systems
17
Setup
V I V I
18
Model Physical Systems with Simscape™
BMS Challenges:
Cell Monitoring Battery Cell Emulator
Cell Balancing
State control (SOC, SOH)
Thermal management
Safety control (out of range, fault Fault Insertion Unit
condition)
20
Battery Cell Emulator
Temperature Emulation and Fault Insertion
Temperature BMS
Cell emulation
emulation
Ethernet
Fault
Insertion
Current Voltage Sense+
read read Power cables
0 – 6 V output,
Sens
-5 A … +5 A
e-
21
Modular Rack Solutions
Integrate battery cell emulators, fault insertion and temperature emulation channels into full rack solutions
Expand systems with custom equipment and signal conditioning units
22
Technical Specifications
24
Success Story: Nuvera
Electrifying Commercial Vehicles with Hydrogen Fuel Cells
Developing fuel cell technology for commercial vehicles
Hybrid fuel cells with lithium-ion batteries
Fuel cells and batteries modeled in Simulink
26
Addendum for Discussion
27
User Story: Proterra
Zero-Emission Battery Electric Bus Charges On-Route
Application
Proterra decided to leverage a hardware-in-the-
loop (HIL) development approach to aid the
testing and development of the control systems
for the new transit bus
Temperature, CAN network, pressure, speed
emulation
Seamless integration into MathWorks Tools
Faster time to market
28
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
29
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
30
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
31
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
32
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
33
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
34
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
I/O Connectivity
Communication Protocols
Plant Emulation
Timing & Synchronization Drag and drop Speedgoat driver blocks into
the Simulink model, connect and configure in
the dialog fields
35
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
Analog Digital
Real-Time Target Computers A/D D/A TTL, RS-422
16-24 bit LVDS
Plant Emulation
Encoders LVDT
Timing & Synchronization BiSS, EnDat, RVDT
Quadrature… Synchro
Resolver
Vibration
36
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
Aerospace Automotive
Real-Time Target Computers
ARINC 429 AFDX CAN J1939
ARINC 629 MIL-STD-1553 CAN-FD XCP
I/O and Communication Protocols ARINC 825 SDLC/HDLC LIN SENT
D-SHOT FlexRay MVB/WTB
I/O Connectivity
Communication Protocols
Plant Emulation
More information
37
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
I/O Connectivity
Communication Protocols
Fault Insertion Relays
SPST
Plant Emulation
DPST
SPDT
Timing & Synchronization
38
Simulink Real-Time is designed for Speedgoat real-time systems
Real-Time Hardware-Software Solution
Precision
Real-Time Target Computers
Shared Time Protocol
Memory IEEE 1588-2008
I/O Connectivity
IRIG
Communication Protocols 1PPS
GPS
Plant Emulation
Ethernet Switch
More information
39
Made for Simulink, Tailored to the Customers Needs
Speedgoat Modular HIL Rack System
40
Made for Simulink, Tailored to the Customers Needs
Speedgoat Modular HIL Rack System
Power Supplies
– Control power supplies from Simulink or a GUI designed with
MATLAB App Designer.
Break-Out Panels
– Providing easy access to all signals for measurement
purposes.
Signal-Conditioning
– Project specific signal-conditioning for level conversion,
galvanic and loop powered isolation.
Rack Systems
41
Real-Time Simulation for Academia
If you know how to use Simulink, you know how to use Simulink Real-Time and Speedgoat!
42
Hardware
Demo Kits and Reference Applications
43
Student Competitions and Sponsoring
Hyperloop
Roborace
44