| At present, controller software test is still at manual testing level in our country. Because all the data are always recorded manually in the software test procedure, different kinds of exceptions can't be caught reliably to analyze the software's bugs. It confines the efficiency and effect of controller software test.For the moment, the acknowledged project which is effective and with bright application future is to make autotest on the software simulation testing platform. Controller software simulation testing platform is a computer system for software test. It can configure all kinds of resource of the tested system, organize the input signals of the tested software which are needed to keep the tested system running, and receive controller's output signals, so that it realists a non-intrusively real-time closed loop autotest.The characteristic of the embedded software is discussed first. Based on the analysis of different kinds of embedded software testing methods and system, an embedded software simulation testing platform incorporating with virtual instrument technology is put forward then. On this platform a controller software black-box autotest system programmed by LabVIEW, which is NI Company's graphical programming tool, is built. The system uses NI Company's multifunction data acquisition card PCI-6229 to generate the simulation environment of the tested controller, meanwhile acquires the controller's feedback signals, and then analyzes the data in the black-box test method to find the controller software's bugs. In this thesis, the design of test script is discussed; how to generate the drive signal and how to acquire the feedback signal in order to keep it a real-time system is described in details; a database is built to manage the testing system; and the technology of criterion is studied.The application result show that the controller software autotest system is flexible and effective. It can be effectively compatible with various models of microcontrollers, and improve the quality and effect of the test. |