测试仪器"/>
python 硬件自动化测试仪器
基于Python语言自动化测试系统设计及实现
基于Python语言自动化测试系统设计及实现 摘 要: 通过分析现代工业生产对自动化测试系统的要求,提出一种基于面向对象的编程语言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
目前,多数虚拟仪器和测控平台的开发都使用LabVIEW图形化编程语言,LabVIEW在界面开发部分占据优势,但是LabVIEW调用Matlab的接口方法比较复杂,将二者很好的结合也有一定的难度,这使得LabVIEW在数据处理方面显现出不足。其次,后期系统扩展对LabVIEW代码进行修改的工作量较大,这对大型的测试系统来说很不利。基于LabVIEW的上述不足,本文提出使用Python脚本语言来编写可互换仪器测试系统。Python拥有丰富的扩展模块以及第三方的支持包,PyQt可以快速开发满足用户需求的GUI界面,NumPy相当于Matlab的Python版本,继承了Matlab的强大数据处理
更多推荐
python 硬件自动化测试仪器
发布评论