摘要:
可程控仪器命令标准(SCPI)目前被广泛应用于测试测量仪器的操作控制中.针对数字示波器的SCPI命令集,研究并设计了一种SCPI命令解释器,此命令解释器通过采用二叉树结构来存储数字示波器的SCPI命令集,并在此基础上通过遍历二叉树来实现SCPI命令的查找过程.设计的解释器具有命令解析效率高,移植性好等优点,现已应用于数字示波器中,实践证明了此设计方案是可行的.;Standard Commands for Programmable Instruments(SCPI) are widely used in operating and controlling of test and measurement instrument. Aiming at SCPI command subsets of digital oscilloscope, a kind of SCPI interpreter is researched and implemented in this paper. This interpreter adopts a structure based on the binary tree to build up the SCPI command tree. By traversing the binary tree, the SCPI command interpreting process is realized. The interpreter designed by this method features the advantages of quick parsing speed, good transplanting and so on, which is used in Digital Oscilloscope. The practice has proved this design scheme is efficient and feasible.
展开