| Locomotive traction control unit is an important part of HXN3diesel locomotive. In the field of modern locomotive, the traction control unit gets more and more attention which can ensure the locomotive reliablity and safety. The traction driving is not the only one requirement to the traction control unit for user, whether it assists the traction system to realize the fault processing and the transfer of important information has become an important indicator to evaluate the traction control unit.Traction control unit hardware structure determines that it is necessary to apply the embedded operating system to perform required functions. After screening, this paper chooses the embedded operating system VxWorks as the core framework of software and makes the VxWorks kernel and BSP adapted for Traction control unit.On the basic frame of VxWorks operating system, this paper develops fault treatment tasks and Ethernet communication with PC tasks, each type of task can be divided into some small tasks, every task complet the corresponding function efficient and timely with all tasks coordinate well with each other. In order to verify the real-time performance of task we build, this paper uses the System View to observe the dispatch operation and periodic operation among some tasks. The results show that the task scheduling mechanism of VxWorks embedded operating system can completely meet the requirement of traction control unit about real-time.Finally, this paper completes the motor control experiment with dSPACE semi physical simulation model through the inverter control path of traction control unit. The motor control strategy is the asynchronous motor vector control, the experiment results verify the correctness of the inverter control function module and its interface logic, laid the foundation for future experiments in the real environment of locomotive. |