检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:周子天 叶卫东[1] ZHOU Zi-tian;YE Wei-dong(School of Automation Science and Electrical Engineering,Beihang University,Beijing 100191,China)
出 处:《测控技术》2019年第5期62-66,71,共6页Measurement & Control Technology
摘 要:目前可编程仪器标准命令(SCPI)依然被广泛使用,因此设计一个高效通用的SCPI命令解释器很重要。常用的SCPI命令解释器多以C语言开发,采用链式二叉树等存储结构,多有如解析效率低、通用性差、不识别等效命令等缺点。因此提出一种基于Python语言的设计。相比于常用的链式二叉树或顺序存储等结构,本设计提出一种基于Python字典结构的新型存储结构,减少了解析时的查询次数,提高了解析效率。而针对常用SCPI命令解释器通用性差的缺点,本设计提出以XML文档描述SCPI命令树,在启动时动态加载进内存的方式提高了解释器的通用性。同时,由于Python跨平台的特性,所设计的SCPI命令解释器也拥有良好的跨平台特性,适于在各平台下工作。Nowadays, standard commands for programmable instruments(SCPI) is still widely used, so, it is important to design an efficient and general SCPI command interpreter. The commonly used SCPI command interpreters are mostly developed in C language, and adopts the storage structure of chain binary tree. It has many disadvantages such as low resolution efficiency, poor universality and unrecognized equivalent command. Therefore, a design based on Python language is proposed. Compared with the common chained binary tree or sequential storage structure, a new storage structure based on Python dictionary is proposed, which reduces the number of queries in resolution and improves the resolution efficiency. In order to overcome the disadvantage of poor generality of common SCPI command interpreters, the SCPI command tree is described with XML document, and the generality of the interpreter is improved by loading it into memory dynamically at startup. At the same time, due to the cross platform characteristics of Python, the designed SCPI command interpreter also has good cross platform characteristics and is suitable for working under all platforms.
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7