| The only way for automotive OEMs and suppliers to cope with the growing demand for ECU testing is to efficiently create and automate test execution.When testing the embedded control system,considering the security,feasibility and reasonable cost,it is unrealistic to use the whole system for all necessary testing.This complexity makes engineers face arduous challenges in shortening the development cycle and reducing costs.Hardware-in-the-loop simulation testing(HIL)has proved to be an effective solution.This technology can ensure that embedded software testing is completed early in the development cycle.By the beginning of the system integration phase,embedded software testing will be more thorough and comprehensive than traditional methods.Through HIL test system,the controller can be tested a lot in "virtual vehicle" without real vehicle.HIL test system can simulate drivers,vehicles and their working conditions so as to find problems as early as possible,shorten development time and reduce costs,improve the software quality of ECU,and reduce the risk of automobile main engine factory.In this thesis,a hardware-in-the-loop simulation test system(HIL)is developed for the vehicle controller of the new energy electric vehicle.Based on the analysis of the risks of various problems in the development of electric vehicle controller,a test system based on NI PXLe controller is designed.The system uses V-mode development method to achieve the overall framework and functional planning of the system.The hardware platform and software platform are designed concretely.The man-machine interface interaction,simulation model loading,data communication and automated testing are completed.Finally,the simulation model of real-time processor is validated to simulate the running state of the controlled object.The VCU under test is connected with the hardware I/O interface,and the VCU under test is tested and validated in all aspects and systematically.The test results prove that the HIL test system designed in this thesis can validate the software and hardware functions of the electric vehicle controller effectively.This research provides powerful verification means for the development of EV controller,and provides strong technical support for the stability and robustness of EV controller.This method can also provide reference for the test and verification of other vehicle electronic control unit(ECU). |