Font Size: a A A

Oscilloscope Scpi Command Set And Grammar Analysis Program Design And Research

Posted on:2013-11-30Degree:MasterType:Thesis
Country:ChinaCandidate:R C WeiFull Text:PDF
GTID:2242330374986313Subject:Measurement technology and instruments
Abstract/Summary:PDF Full Text Request
As the high-speed advancement of international instrument, the development and progress of instrument of China is immensely improved. Programmable instrument has been the main stream of today’s industry development. But current domestic programmable instrument mainly relys on foreign core technologies, which badly impedes the development and innovation of domestic programmable instrument. Therefore, the emphasis and difficulty of current domestic instrument industry is to study the programmable instrument which corresponds the international developing trends.SCPI is the major standard of programmable instrument. For the guarantee of the cooperation of modern instrument system integration technology and the purpose of expanding its application domain, adding the SCPI upgrade to current programmable instrument products ought to be taken into account. Thus, the utilization of SCPI standard on programmable instrument inevitably becomes the trends of testing software development, which demands programmable instrument to have a flexible and efficient SCPI command interpreter. Based on research program--"Research on100MHz bandwidth Digital Storage Oscillgraph(DSO)", this paper proposes the design of SCPI command interpreter used on DSO.This paper firstly studies and analyses the DSO based on IEEE488.2standard, SCPI instrument model and SCPI standard. In addition, the paper also discusses the specific design process of SCPI command set of DSO, resulting in using multi-branch tree form to express the SCPI command set.Secondly, for achieved SCPI command multi-branch tree logical structure, according to storage structure processing method and traversal method from tree processing methods in data structure, which means using binary tree linked list to realize the storage structure of SCPI command multi-branch tree, this paper utilizes preorder traversal to perform command searching process and designs program flows based on c language to realize the SCPI command interpreter program. Furthermore, let SCPI command statement input as the form of text. After interpretation of SCPI command by command interpreter, the legality of corresponding internal code is checked.At last, software testing the binary tree of structure command. Design a testing plan list to check the code block of binary tree of structure command by manual testing, and then design test case based on boundary value analysis, which is aimed at commands including default nodes. The testing results proves that reliability and efficiency of designed SCPI command explanation.This paper, aimed at the request of one kind of DSO, designs the SCPI command set of this DSO and designs binary tree linked list storage structure based on C language and SCPI command interpreter software based on preorder traversal method. After code checking by manual testing, the feasibility of software is tested, which reaches the demands of SCPI command interpreter of DSO.
Keywords/Search Tags:SCPI, DSO, Command tree, Binary tree linked list, Command interpreter
PDF Full Text Request
Related items