pyGPIBscope.

last update: 21/09/2010

last version 3.8

philippe.dalet@ac-toulouse.fr

[Home] [Sources] [Download]

HOME


DOWNLOAD

 

HP54111D

 

TDS200

 

HP3478A

 

pyGPIBscope

 

MCCDAQ

 

 

 

 

 

Electronics Utilities

 

 

 


Introduction

pyGPIBscope.py is a python script to acquire data from any oscilloscope (HP54111D from Hewlett-Packard, TDS210 from Tektronix, ...) through the USB-GPIB interface (82357A from Agilent) or through the SERIAL Port.

 

Characteristics

Inspired from wxpyplot.py (http://www.cyberus.ca/~g_will/wxPython/wxpyplot.html) and from plot.py in wxpython, you can:

 

- plot data on a windows through the USB-GPIB interface (82357A) or the SERIAL PORT

- save in bmp, xbm, xpm, jpg, png image file

- save in binary file .dat (see Pspice - Orcad - Cadence)

- save in Stimulus File .stl  (see Pspice - Orcad - Cadence)

- print

- print preview

- scrolls data (left, center, right)

 

You can edit this configuration file for another device (see below).

 

pyGPIBscope.ini

[modules]
0=HP54111D
1=TDS200
2=

[HP54111D]
adress = GPIB0::10::INSTR
title = Oscilloscope Graph


[TDS200]
adress = COM1
title = Oscilloscope Graph

[settings]
default=1

 

When you start the application, you have to select the device

 

 

If  no device connected, if no device module not installed or no serial port opened,  this script will run in demo mode.

 

Python Modules necessary

* OS: Win2K and WinXP tested

* Python 2.6.5

* wxPython 2.8.10.1

* gpib82357A-x.x.win32-py2.x.exe 

* HP54111D-x.x.win32.exe

* TDS200-x.x.win32.exe

* pyserial-2.5.win32.exe

* Numpy-1.5.0.win32-py2.x.exe

Installation

* Download pyGPIBscope-x.x.win32.zip and unzip pyGPIBscope-x.x.win32.zip a folder "C:\program files\pyGPIBscope"

* python pyGPIBscope.pyw or click on pyGPIBscope.pyw

you can use the command build.bat to make an executable with py2exe

or

* run pyGPIBscope-x.x.exe (Nsis installer)

Default Folder: "c:\program files \pyGPIBscope"

Todo

- To develop a package for gpib82357A on others platforms: Linux-Unix (see agilent)

 

PythonPowered Logo  SourceForge Logo