pythonvxi11 man page

pythonvxi11 — Python VXI11 Documentation

This Python package supports the VXI-11 Ethernet instrument control protocol for controlling VXI11 and LXI compatible instruments.

See also:

Contents:

Introduction to Python Vxi11

Overview

This Python package supports the VXI-11 Ethernet instrument control protocol for controlling VXI11 and LXI compatible instruments.  The implementation is pure Python and highly portable.

It is released under the MIT license, see License for more details.

Copyright (c) 2012-2017 Alex Forencich and Michael Walle

See also:

  • Python VXI11 home page
  • GitHub repository

Features

  • Supports Python 2 and Python 3
  • Pure Python
  • Highly portable
  • Communicates with instruments over the VXI11 TCP/IP instrument control protocol

Requirements

  • Python 2 or Python 3

Installation

To install the module for all users on the system, administrator rights (root) are required.

From source

Download the archive, extract, and run:

python setup.py install

Packages

There are also packaged versions for some Linux distributions:

Arch Linux

Python VXI11 is available under the name “python-vxi11-git” in the AUR.

Python Vxi11 Examples

Opening a connection

Connect to an Agilent MSO7104A oscilloscope on IP address 192.168.1.104:

>>> import vxi11
>>> instr =  vxi11.Instrument("192.168.1.104")
>>> print(instr.ask("*IDN?"))
'AGILENT TECHNOLOGIES,MSO7104A,MY********,06.16.0001'

Connect to an Agilent E3649A via an HP 2050A GPIB bridge:

>>> import vxi11
>>> instr = vxi11.Instrument("192.168.1.105", "gpib,5")
>>> print(instr.ask("*IDN?"))
'Agilent Technologies,E3649A,0,1.4-5.0-1.0'

Configuring connections

Open a connection and set the timeout:

>>> import vxi11
>>> instr = vxi11.Instrument("192.168.1.104")
>>> instr.timeout = 60*1000
>>> print(instr.ask("*TST?"))
'0'

Vxi11 — Vxi11 Driver

This module provides a VXI11 TCP/IP instrument driver.

Functions and Exceptions

exception vxi11.Vxi11Error

Exception raised on various occasions; argument is a string describing what is wrong.

Instrument class

class vxi11.Instrument(host, name=None, client_id=None, term_char=None)

VXI-11 instrument interface client

local()

Send local command

read_stb()

Read status byte

remote()

Send remote command

Appendix

License

Copyright (c) 2012-2017 Alex Forencich and Michael Walle

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR Copyright HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

  • genindex
  • modindex
  • search

Author

Alex Forencich

Info

Jun 19, 2018 0.1 Python VXI11