| Arbitrary waveform generator is widely used in modern automatic test system as universal test signal source. To meet requirements of the instrument manufacturing project that named "4-channel 600 MSPS arbitrary waveform generator", this article will design the software "SCPI service program", and implement the "parameter automatic correction system" established on the basis of the "SCPI service program". The "SCPI service program" makes the arbitrary waveform generator supports SCPI command; and the "parameter automatic correction system" can help the related parameters in the analog channel of the arbitrary waveform generator to realize automatic correction. The parameter automatic correction system can save a lot of human time on correcting the related parameters.The key research points of this thesis are as following:(1) Design the SCPI parser. Divide the SCPI parser of "4-channel 600 MSPS arbitrary waveform generator" into "common parser" and "specific parser" two parts. The "common parser" applies to all SCPI commands, and the "specific parser" part closely integrated with the arbitrary waveform generator specific commands. Only combination of the two parts can complete the full interpretation of the arbitrary waveforms generator. So convenient for software maintenance, and improve the software reusabilite and extensibilite.(2) Arbitrary waveform generator status report system design. According to the definition of SCPI standard, design a set of Minimum status report system for arbitrary waveform generator to report the AWG status in the process of SCPI command.(3) Package of Software interface. In order to make the software interfaces written with different language in the the arbitrary waveform generator, encapsulate the C standard interfaces of SCPI command parser and IVI(interchangeable virtual instrument) function generator class driver program.(4) Automaticly correct the systematic errors of the arbitrary waveform generator output waveform parameter. This article based on the SCPI service program, designs the parameter automatic correction system for the arbitrary waveform generator, implement the automatic correction of multiple parameters in the four channels of the arbitrary waveform generator. And in other hand, implement the practice test of the SCPI service program.As the arbitrary waveform generator speed faster and faster, the software as arbitrary waveform generator supporting software, pay lots of attention to software reuse rate, so as to shorten the development time of arbitrary waveform generator. Through the practice test on the instrument, the design of SCPI service program and parameter automatic calibration system which achieved the indicators of the project requirements and achieved the expected goal. |