Instrument Driver Wrapping in Python Based on SWIG
CSTR:
Author:
Affiliation:

Clc Number:

Fund Project:

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • |
  • Materials
  • |
  • Comments
    Abstract:

    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.

    Reference
    Related
    Cited by
Get Citation
Related Videos

Share
Article Metrics
  • Abstract:
  • PDF:
  • HTML:
  • Cited by:
History
  • Received:
  • Revised:
  • Adopted:
  • Online: July 17,2018
  • Published:
Article QR Code