| As the the global oil energy increasingly nervous and environment worsening,the environment protection become the premise in the development of all kinds of industry. Zero emissions, zero pollution and high performance, pure electric vehicles become the inevitable development trend of the automotive industry. The vehicle controller is the core component in pure electric vehicles that play a decisive role in electric power, comfort, safety of vehicles. Therefore, efficient, fast and accurate development of the vehicle controllers played a significant role in electric vehicle industry. At present, in the process of "V" development of the vehicle controller, the hardware-in-the-loop technology is a very important support technology, which can embed the hardware in the simulation system. And it solves the problem of high cost and long cycle, which has a significant impact on the development of electric vehicles. The hardware-in-the-loop technology includes the building of the simulation platform, the calibration of the important control parameters, and the simulation of the important component model. At present, there are many research of the hardware-in-the-loop and there are also many different methods and design to build a Hardware-in-the-loop platform. In general, it is the key of the hardware-in-the-loop technology that the stable simulation platform and the simulation model with high degree of simulation. Based on the existing resources and existing conditions of laboratory, this subject uses the method of the simulation combined with experiment and work out a kind of scheme to build the hardware-in-the-loop platform which is low cost and high practicability. At last, this subject has carried on the platform of the whole simulation experiment to verified the correctness and feasibility of the platform.The main content of this paper include:(1) Establish two computers simulation environment based on xPC Target and achieve signal communication between target computer and host computer.(2) Achieve PCI-1680CAN card driver in xPC Target environment based on S-function, and can call the CAN card to send data, receive data.(3) Use Matlab/Simulink build the motor and the battery model in the dSPACE real-time system environment, and load them to the system to carry out simulation test.(4) Design the communication interface between the dSPACES real time simulation system and the xPC Target system, and achieve mutual conversion of CAN signal and analog signal to reliable communication platform.(5) Design a simple calibration software base on Labview, which can achieve the seamless connection between the xPC Target and the Simulink model.(6) Verify the feasibility and correctness of the hardware-in-the-loop simulation experiment platform. |