基于SWIG的Python仪器驱动封装技术
Instrument Driver Wrapping in Python Based on SWIG
  
HTML  查看全文  查看/发表评论  下载PDF阅读器
中文摘要:
      Python是交互式的高级脚本语言,语法简单,开发效率高。但Python不支持内存指针,不便于仪器编程。首先对比了Python调用仪器驱动的主要方案,并以凌华公司PXI-nuDAQ2206多功能数据采集模块为例,介绍了用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 ADLINK PXI-nuDAQ2206 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, a performance comparison test is designed, and the efficiency of invoking instrument driver in Python is quantitatively analyzed.
作者单位
马 宇,叶卫东 北京航空航天大学北京 100191 
中文关键词:  Python  SWIG  仪器驱动  自动测试系统  虚拟仪器
英文关键词:Python  SWIG  instrument driver  automatic testing system  virtual instrument
基金项目:
DOI:10.11823/j.issn.1674-5795.2018.02.13
引用本文:马 宇,叶卫东.基于SWIG的Python仪器驱动封装技术[J].计测技术,2018,38(2):.
关闭