| Display and control software of the test instrument should be people-centred. The software with a good interactive can greatly reduce the difficulty of operation and improve the competitiveness in the market.The software designed in this paper provides many kinds of stimulus signals such as function waveforms, arbitrary waveforms, sequenced waveforms and advance sequenced waveforms.And it provides a variety of ways to operate the instrument, such as operating instrument with remote control or front-panel or keyboards and so on. The display control software contains a large number of functional modules, the relationship between the modules is complex, and increased the difficulty of the design of the software. The major work of this paper is presented as follows:(1) Software structure design based on MVP mode. On the software requirements are detailed analysis, for each module of the software contains a large number of view, logic and data, using the MVP(model, view, presenter) pattern will separate the three layer, by extracting the common operation of each module and then establishing MVP software framework.The framework designs many functions, such as obtaining widgets from glade file, registering the custom widgets, controlling parameter scope and so on. The MVP framework has several advantages includes minimizing code redundancy and improving the maintainability and extensibility of software.(2) Designing the method to reduce the logical complexity. A large number of data and view needs to be updated at the same time of the software, using the binding technology to efficiently operate the data and make the interface state and the data consistent. Based on the technology of data driven update view, the binding structure is established, which solves the synchronization requirement of data and view, simplifies the design of the complex logic.(3) Designing the method to control instrument in many ways. By directly calling the module’s internal function to realize to control instrument in multi ways, this method has the problems such as design illogical, the code is difficult to maintain and so on. In view of the above problems, listening attributes is used to call the internal function of each module, and the coupling between each module is released, so that each module can work independently.By test verification, the software provides 10 kinds of function waveforms such as Sine, Triangle, Square and so on, and arbitrary waveforms with 64,000,000 waveform memory capacity, and 10 kinds of modulations such as AM, FM, FSK.The software supports sequenced waveforms which are constructed from many arbitrary waveforms, and advance sequenced waveforms which are constructed from many sequenced waveforms, all of the sequenced waveforms can set the times of the loop which step is selected.And it supports many ways to control the instrument such as remote control, keyboard control and so on. The above method is adopted to design the control software, which can simplify the design of the logical layer, and is convenient for the maintenance and upgrading of the later. |