检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:马宇 叶卫东[1] MA Yu;YE Weidong(Beihang University,Beijing 100191,China)
机构地区:[1]北京航空航天大学,北京100191
出 处:《计测技术》2018年第2期54-58,共5页Metrology & Measurement Technology
摘 要:Python是交互式的高级脚本语言,语法简单,开发效率高。但Python不支持内存指针,不便于仪器编程。首先对比了Python调用仪器驱动的主要方案,之后以某多功能数据采集模块为例,介绍了用SWIG(Simple Wrapper and Interface Generator)开源工具将其驱动封装为Python拓展模块的主要步骤,并实现了远程、跨平台调用。最后设计性能对比测试,定量分析了Python程序中调用仪器驱动的运行效率。Python is an interactive high-level scripting language with simple syntax and high development efficiency. But Python does not support memory pointers,and is not convenient for instrument programming. This paper introduces and compares several methods to invoke instrument driver in Python,and takes one multi-function data acquisition card as an example to show how to wrap customized instrument driver into Python's extension module utilizing SWIG( Simple Wrapper and Interface Generator). Remote and cross-platform API calling is also achieved in the process. Finally,the efficiency of invoking instrument driver in Python is quantitatively analyzed through a performance benchmark test.
关 键 词:PYTHON SWIG 仪器驱动 自动测试系统 虚拟仪器
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.129.17.22