2002 Japan-USA Symposium on Flexible Automation
International Conference on New Technological Innovation for the 21st Century
July 14-19, 2002
Hiroshima, Japan




Model-Based Software Development
for Electronic Control Unit (ECU)
Controller Development by applying High Performance Real-Time System

July 14, 2002
Hiroshima, Japan

Nobuo Murakami and Kei Murakami
LinX Corporation
http://www.linx.jp
1-13-11, Eda-nishi, Aoba-ku, Yokohama 225-0014
Japan

Tel: +81-45-979-0731   Fax: +81-45-979-0732
nmurakami@linx.jp

The importance of controller is increasing particularly in automobile industry, and 90% of today's automotive innovations are made in the electronic field, primarily electronic control unit (ECU). V-cycle has been well-established development approach in automotive industry, where high-speed feedback controls are required. So as to get high development efficiency, the integrated development environment is very important factor by applying high-performance real-time system. The modern development cycle so called V-cycle will be discussed in this tutorial course, where attendees will get the latest and the most efficient way to build the sophisticated controller to be applicable in the industry.

In addition to introducing the concept and methodology of V-cycle, various applications constructed based on the V-cycle approach will be discussed at each development process. The model based V-cycle has primarily come into wide use in automobile industry, but the other fields like electrical systems and robotics have the trend to apply this approach, whose applications will be also introduced.

V-Cycle Model

Tutorial Contents:

  • Concept of V-Cycle for Controller Development
V-cycle for controller development has been applied to the software development of automobile ECU (Electronic Control Unit) by worldwide automobile manufactures and ECU suppliers. The V-cycle has its backbone on model based controller development, and models constructed by MATLAB are applied to every development process configuring V-cycle. The advantages of V-cycle model as compared with traditional development cycle will be discussed in this tutorial.
  • Controller Design by MATLAB/Simulink/Stateflow
MATLAB has been regarded as defacto standard tool among control engineers, and its toolboxes of Simulink and Stageflow also have the big role to handle non-linear systems. A user designs a controller by MATLAB environment, and he can validate the features of the controller by off-line simulation on the platform where MATLAB tools work. The model constructed by MATLAB is easy to know what are described, and the model can be simulated in offline mode so as to know if the designed controller works appropriately. These two factors allows MATLAB model to be regarded as executable specifications. The model based controller development means that all the development tasks are made based on the MATLAB models.
  • Rapid Controller Prototyping
The MATLAB controller model should be validated by the real-time operation in conjunction with actual plant like a robot and a vehicle, which allows a user to know if the controller works properly in real world. Traditional development required hand coding of the controller and its implementation on proprietary real-time hardware, which needed a lot of effort and long period.

Rapid prototyping tool like dSPACE system allows a developer to implement Simulink/Stateflow model on the powerful general-purpose real-time hardware automatically by integrating the control model with Simulink I/O blocks. Prototyping tool for automobile onboard testing will be demonstrated to show how easily the control model including triggered subsystem can be implemented on real-time hardware and how easily the controller can be monitored.
  • Code Generation Equivalent to Hand-Code
The controller model constructed by Simulink and Stateflow whose operation was validated by rapid controller prototyping process should be manually programmed so as to be implemented on target hardware of the controller previously. Some trials have been made to generate C code from Simulink and Stateflow models automatically, but it has been very difficult to create the code whose execution time and memory consumption are equivalent hand-code.

TargetLink, a code generator supplied by dSPACE is very exceptional code generator, which allows a user to get the high efficient C code not only floating point but also fixed point codes to be implemented on target controller hardware. The program generated by TargetLink has been already implemented on commercial car controller in the market, for example engine controller of Nissan Sentra 2000 model. TargetLink will be demonstrated to show how efficient code is generated from Simulink/Stateflow models.
  • Hardware-in-the-loop Simulation to Test Controller
Hardware-in-the-loop (HIL) simulation is alternative approach of the testing by using actual plant like airplanes and automobiles. This technology came from aerospace industry to reduce the risk of the accidents due to bugs in the controller. Thanks to the price reduction of HIL simulator systems, automobile industry has big demands for the simulators, which allows them to reduce actual engine testing and onboard vehicle testing, because they can reduce both test cost and risk of test diver by HIL simulations.

Typical applications of HIL simulation are engine simulator and vehicle dynamics simulator for automobile industry, which require precise mathematical models running in real-time. The simulator to test the controller for ESP (Electronics Stability Program) will be demonstrated, and real-time animation software to show the behavior of vehicle for example in the sudden braking condition on slippery road will be also shown.
  • Final Controller Parameter Adjustment
The controller parameters are necessary to be tuned so as to get comfortable operations for a user before it is released to the market. This is the final process of V-cycle development model, which required a lot of effort based on past experience. However model-based development approach also is going to have big impact on this time consuming process.

The parameter tuning (calibration) engineer can get a lot of information from the controller model in order to get the optimal point of a parameter efficiently. In case a calibration engineer finds out any problem in this final process, he can give the feedback to the controller designer by showing the problem in the model, which allows them to recover the problem very efficiently. The new concept of calibration process based on the model-based approach will be also introduced.
  • Application Example of Visual Feedback System
Visual information is recently highlighted as non-contact sensor, and some approaches are made to build visual feedback system in the robotics field for example. Thanks to big computation power of PC and enhancement image processing software, image has been process at very high-speed, which allows a researcher to use the image information as sensor signal of a controller. The stabilization of inverted pendulum will be demonstrated as an application of visual feedback system.

Who are expected to attend?:

Control algorithm developers, controller designers, ECU code developers and calibration engineers in the automotive industry, control engineers who design embedded system, students and academic researchers who are interested in the controller implemented on embedded system.

Program:

9:00 - 9:30: Concept of V-Cycle for Controller Development
9:30 - 10:00: Controller Design by MATLAB/Simulink/Stateflow
10:00 - 12:00: Rapid Controller Prototyping
12:00 - 13:00: Lunch Break
13:00 - 14:00: Code Generation Equivalent to Hand-Code
14:00 - 15:00: Hardware-in-the-loop Simulation to Test Controller
15:00 - 16:00: Final Controller Parameter Adjustment
16:00 - 17:00: Application Example of Visual Feedback System

About the Tutorial Presenter:

Mr. Nobuo Murakami is President/CEO of LinX Corporation in Yokohama Japan. He has distributed various engineering oriented development tools like dSPACE and MATRIXx to Japanese market and provided engineering service for the tools of control engineering and image processing. He has published books of structured programming technology from Nikkei BP and practical image processing from Springer-Velrlag Tokyo. Mr. Kei Murakami is a control engineer to provide engineering service to dSPACE users in Japan, and he has rich experience to have constructed various hardware-in-the-loop simulators for automobile industry. He is particularly interested in the highly efficient model based controller development approach.