Font Size: a A A

Construction Of Engine Control Software Based On Simulink

Posted on:2016-07-20Degree:MasterType:Thesis
Country:ChinaCandidate:C ZhangFull Text:PDF
GTID:2322330476455583Subject:Vehicle Engineering
Abstract/Summary:PDF Full Text Request
Model-Based Design is a hotspot in the automotive sector. This approach can improve the efficiency of research, shorten development cycles and accelerate the upgrading rhythm. Engine is the most important part of the vehicle, its control technology is very important. This thesis is based on the development of engine control platform.In the initial stages of development, the hardware and software architecture of the engine was researched, and the architecture of embedded real-time operating system was analyzed. Engine control systems have high requirements for real-time, so real-time requirements are different for different tasks. Core task's real-time index is more important than the task scheduler. Therefore a reasonable system was needed as the basis to ensure that all tasks can be run properly, and can meet the real-time requirements. In the system, common tasks use embedded real-time operating system ?C/OS- ?for management. The most demanding real-time tasks use interrupt for management. According to the mechanism, this paper established the engine control model framework.In order to improve development efficiency and shorten the development cycle, using MATLAB / Embedded Coder platform as the main tool to develop. Using automatic code generation technology and MATLAB scripting language to customize the platform development environment. Firstly, the general process of embedded applications in Simulink platform was studied, and analysis of the structure of the generated code of ERT system was done. Automatic code generation technology is the development trend of embedded technology development, but the generated code based on ERT system can not run, and does not match the ?C / OS-? System Program Structure.Based on ERT system, this paper developed multitasking application architecture based on ?C/OS-? system. In this architecture, a series of scripts was used to control the model configuration and code generation. System Target File was used to control the entire code generation process, callback file configuration parameters of the model, template files was used to control the generation of the main program, and hook file calls CodeWarrior to compile generated code. In the environment, the task module and interrupt module was established.Finally, based on the environment and the task module, a test model was created, which focused on task scheduling mechanism. In the generated file, the corresponding test code was added which different tasks to control different LED lights. Observe of changes in the scope voltage different port indicated the generated code can meet the task scheduling mechanism of ?C / OS-? system.
Keywords/Search Tags:Engine Control, Embedded Real-time Operating System, Code Generation, Testing and Verification
PDF Full Text Request
Related items