to inputs during the response process. Abstract-This paper introduces a new simulation method . Using the empirical data as little as possible. based on Matlab/RTW and VxWorks real time operating system.The simulation precision and stringent restriction to the We construct the real time simulation systems include diesel computing time is always pair of contradictory in many engine dynamic model and the NOx emission neural network (NN) . X. t X o s model. This model is set up by Simulink and can be generated to situations There are two kinds of soluion, simplifies the model embedded real time code optimized automatically by RTW. The under the guaranteed certain precision or enhances the model parameters and simulation data can be adjusted online. processor operation ability. Compared with traditional method to write and revise the In this paper, a real time simulation diesel engine model is simulation model code by hand, the method has accelerated the presented, which combines a mean value model [3]-[5], research of the hardware in the loop simulation. Through the in-cylinder model based on filling and emptying method [6] analysis of the simulation results of the several diesel engine and the NO, emission neural network (RN) model base on the models, the fast feasibility of this method has been vcrificd. adteNXelso erlntok(N oe aeo h reflection relationship between the amount of NO, and some Index Terms-diesel engine, NOx emission, neural network, influence factors. This combined model is the result of the real time simulation compromise between accuracy and computer time. Moreover a new simulation platform base on VxWorks target system and P4 PC ensures the real time demand. I. INTRODUCTION N owadys, the technology of diesel engine developed quickly in order to reduce fuel consumption and vehicle II. TURBOCHARGED DIESEL ENGINE DYNAMIC MODEL IN emissions. With the functions, complexity and control MATLAB/SIMULINK precision of engine electrical system (ECU) constantly increasing, the corresponding difficulty in developmentThe diesel engine model presented in this paper is established progress is also enhancing. For research and development the in Matlab/Simulink [7], [8]. In order to reach the trade-off engineers need tools to test and verify the reliability of new between simulation accuracy and computational overhead, the control strategies implemented in the ECU. This test should be dynamic model combines a mean value model, filling and done to the highest extent in the laboratory to reduce costs and emptying method and neural network model. risks which are involved in the test stands or experimental cars.The whole turbocharged diesel engine model consists of Therefore the optimal solution is the operation of the ECU in a several components (Fig. 1): diesel engine sub-model, fuel real time closed loop environment, commonly named hardware in the loop simulation system (HILSS) [1], [2]. Compressor Being the kernel of HILSS, The engine dynamics simulation Turbine model determines the performance of HILSS. As a comp...