Agilent Technologies

Python: Basic VISA Functionality Read Me

This project compiles to a dynamically-linked library with the name visa.pyd. It implements an extension module for the Python programming language that provides some basic I/O capabilities via the VISA I/O library, visa32.dll.

Date: August 4, 2005

Version: 1.00

Programming Language: C++ in Microsoft Visual Studio 2003

Required Instrument: Any instrument connected to a PC via an interface that is supported by VISA, such as GPIB or USB.

Operating Systems Required: Windows® 98, Windows Me, Windows NT® 4.0, Windows 2000, Windows XP

Other Requirements: Requires the Agilent I/O Libraries Suite 14 or greater (www.agilent.com/find/iosuite) to be compiled and used. Requires the Python programming language version 2.4 (www.python.org) to be compiled and used. Expects the Python installation directory to be c:\python24 and the VISA installation directory to be c:\program files\VISA.

Usage Instructions:

Unzip the Visual Studio project into a "clean" directory and open the project. Compile the program. If errors occur, it is likely the visa.h, visa.lib, python.h, and/or python24.lib external dependencies are intalled to a different directory than expected or not installed at all.

Other Information:

This implementation is meant to be a demonstration of technology, not a complete implementation of VISA in Python. The implementation only supports a few basic operations: reading and writing strings and opening resource sessions via their VISA name, such as GPIB1::23::INSTR. This project can be extended by engineers familiar with C/C++ and Python to include any other VISA operations required for instrument programming applications. See the Python version 2.4 documentation at www.python.org for documentation on the C extension API for Python.

AGILENT PROVIDES THIS FREE SOFTWARE "AS IS". ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO ANY WARRANTY OF NON-INFRINGEMENT, THE IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY QUALITY, REASONABLE CARE AND SKILL, AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Agilent shall not be liable in any way whatsoever for any damages of any nature arising from its use. In no event shall Agilent be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to: procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability or tort (including negligence or otherwise) except if caused by willful misconduct or gross negligence arising in any way out of the use of this software, even if advised of the possibility of such damage and if it has been ensured that such data can be reconstructed with reasonable expenditure from data material provided in machine-readable form.

Windows is a U.S. registered trademark of Microsoft Corporation.

Microsoft is a U.S. registered trademark of Microsoft Corporation.

Windows NT is a U.S. registered trademark of Microsoft Corporation.

 

Copyright © 2005 Agilent Technologies, Inc.


© Agilent 2000-2006