| This project is to design SCPI command system and SCPI command analysis program based on the self-developed digital oscilloscope(DSO)ESxxxx as the prototype,and to develop the instrument driver and oscilloscope program control example software based on LAN mode.According to the needs of the test,the remote end can set the functions of the oscilloscope such as vertical system,horizontal system,trigger system,display system and calibration,and finally realize the program control of DSO.The main contents of this project are as follows:First of all,the realization of oscilloscope instrument discovery and the design of visa driver are completed.This paper focuses on the structure of vxi-11 protocol,discovery and identification mechanism,and the RPC Protocol involved.How to embed vxi-11 protocol into the program of oscilloscope,so that the upper computer can control the oscilloscope.It also introduces the design of instrument driver based on Virtual Instrumentation Software Architecture standard.The communication details of various instruments are encapsulated in high-level function functions.Users can directly use these high-level functions in their own application programs to carry out development work.Secondly,complete the design of oscilloscope program control command set and command set analysis.On the premise of complying with standard command for programming instrument,the SCPI control command of oscilloscope designed includes two parts,common command and specific SCPI control command.Common commands refer to some common commands defined in ieee488.2 standard for querying basic information of the instrument or for performing routine basic operations of the instrument.The specific SCPI control command is a command set considering the special measurement function of the oscilloscope,which is only related to the instrument itself.Function of SCPI command interpreter: to parse the input SCPI command string,mainly to translate the meaning of its characters into the operations that can be recognized and executed by the instrument.Thirdly,design of IVI driver for upper computer oscilloscope.interactive virtual instrument is a new instrument driver technology based on VISA instrument driver,which defines a series of standard instrument programming models.Class driver layermainly defines all interface functions and attribute parameters of the oscilloscope,including channel module,level module,trigger module,data acquisition module and function functions of extended function module,which provides a standard interactive programming interface for the program control program.Finally,the test results show that the design of the system is reasonable,the basic functions of the design software are realized,and the design requirements are met. |