黄建军+李宥谋+刘婧+周欢
摘 要: 通过分析现代工业生产对自动化测试系统的要求,提出一种基于面向对象的编程语言Python构建的自动化测试系统。利用Python语言的高效、灵活和简洁等特点,结合Pyvisa,Pyivi和Web.py等扩展模块提供的强大功能,以及 IVI 和 VISA技术的后台支持,可以快速组建满足用户测试需求且高效的测试系统;其次利用NumPy,Matplotlib和PyQt4扩展模块能够准确地完成对测试数据的各种运算处理以及相关的图形界面显示等操作。结果表明,该系统具有高效性、通用性和扩展性,使用Python开发虚拟仪器与测试系统,代码简洁、层次清晰、周期性短,具有广泛的应用前景。
关键词: 测试系统; Python; Pyvisa; Pyivi; 可互换性
中图分类号: TN911?34; TP393 文献标识码: A 文章编号: 1004?373X(2017)04?0039?05
Design and implementation of automatic testing system based on Python
HUANG Jianjun, LI Youmou, LIU Jing, ZHOU Huan
(School of Computer Science and Technology, Xian University of Posts and Telecommunications, Xian 710061, China)
Abstract: A kind of automatic testing system based on the object?oriented programming language Python is proposed by analyzing the requirement of the auto testing system for modern industrial production. With the background support of VISA and IVI technology, the efficient testing system satisfying the testing demands of users can be built quickly in combination with the efficient, flexible and concise characteristics of Python language, and the powerful functions of Pyvisa, Pyivi and Web.py extensional modules. Besides, the system can complete each operational processing of testing data and relevant GUI display accurately by means of NumPy, Matplotlib and PyQt4 modules. The result indicates that the system has high efficiency, universality and expansibility. The application of Python for developing the virtual instrument and testing system has the characteristics of concise code, clear hierarchy and short cycle. It has a broad application prospect.
Keywords: testing system; Python; Pyvisa; Pyivi; interchangeability
目前ÿ