Live Debugging of Stateflow Charts While Running on ECU
Mohammad Raouf, Valeo
Amjad Elshenawy, Valeo
Model-Based Design has become one of the most important topics in automotive domain. On the development side, engineers usually use Model-Based Design with tools such as MATLAB®, Simulink®, and Stateflow®, to implement the specifications and algorithms of the system. They simulate to verify their implementation, and finally generate the code.
On the testing side, engineers usually perform activities such as model-in-the loop (MIL), software-in-the-loop (SIL), and hardware-in-the-loop (HIL) testing. After all of these testing phases, there could be still some wrong behavior detected when the code is flashed to the ECU and tested on the host vehicle. At this point, there is a need to efficiently deeply debug the code arises.
Debugging code generated from Simulink models and running on ECUs is possible by means of commercial calibration and validation tools (e.g. INCA). These tools acquire signals, display them in physical representation, and record them for further processing. This method is useful for Simulink signals representing mathematical calculations, but does not work for Stateflow state charts. The developer needs to create a variable representing the current active state, and even a plot of this variable does not help so much if the state chart is really big.
This presentation shows a new concept for debugging the code generated from Stateflow while it is running on the ECU in the host vehicle directly. This is achieved via external communication between Simulink and the ECU using the CAN protocol on the physical CAN bus. Using this method, the engineer can analyze code generated from Stateflow running on the ECU by observing the animated state charts within the MATLAB, Simulink, and Stateflow environment, which represents the current situation in the software. This idea is also applicable to LIN, Flexray, and other vehicle communication protocols.
Recorded: 24 Sep 2015
Featured Product
MATLAB
Up Next:
Related Videos:
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia-Pacífico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)