| As a result of the strict law and regulations on automotive power, economy and emission, the control ability of automobile engine is improved constantly, with increasing number, complex function and high quality of Engine Electronic Control Unit(ECU). So the Hardware-in-the-loop(HIL) Simulation System which is used to develop and test the ECU, is received more and more attentions. Compared with the traditional test method, the HIL Simulation System has much more advantages, including high repeatability, good real-time, entire working condition, short development cycle and low development risk. At present, Many companies had developed their platforms of the HIL Simulation System, which have good compatibility and real-time, but the late scalability and use-cost of those simulation system are serious frustrating. Apart from that, the platforms’ systems and hardware equipment are too difficult to meet the needs of schools and institutes to complete diverse scientific research tasks. Therefore, it has considerable practical significance, using computer systems and common hardware equipment to bulid the HIL Simulation System.In order to improve the late scalability and use-cost, we create an original project of ECU in the HIL Simulation System based on speed simulation device and x PC. This project is based on the principle of ECU and HIL Simulation System, the research of the main HIL Simulation Systems platforms and the combination of MATLAB/Simulink and RTW. According to the x PC Target real-time software environment and original ECU management system, we use not only Simulinik model to simulate the engine and its running conditions, but also PID model to operate the simulation device of the speed closed-loop control, which can ensure that the rotating speed of the simulation device can directly reflect the engine model speed and the working state of ECU. At first, we establish x PC Target real-time software environment, which selects the NI PCI6221 multi-functional board and NI PCI6713 analog output board to form data acquisition system with interface module and driver of x PC Target. Then, we design the hardwares of HIL, including speed simulation device, speed signal conditioning circuit, fuel injection pulse width signal conditioning circuit and so on. Finally, depending on analysis of engine performances and principles, we build the mean-value model of Simulink engine and the model of the dynamometer, which are suitable for this engine ECU. Meanwhile, according to the actual signal and interface equipment requirements, the signal acquisition and output model are built. At last, we verifyed and improved the whole model in off-line and real-time.Based on the hardware and software above, the ECU in the HIL simulation system is developed. We use this system to experimental study and complete data acquisition function, proving this system can simulate engine working conditions reasonablely, which lays the foundation of ECU testing and follow-up platform improvement. |