Python scripts for serial RS-232 communication with an old Tektronix 222 oscilloscope.
Written for fun experiments on analog computing (using op amps and analog multipliers) and used to generate figures for this article (in french).
NB: The "lib" is partial and poorly written (for a particular purpose), however it might be useful as a starting reference if one needs to do something similar.
Python 2.x and matplotlib
(package python-matplotlib
under Ubuntu/Debian).
tek222.py
is a (rather dirty) library for (partial) support of the RS-232 communication protocol (see manual below for the specs) with the scope.capture.py
shows how to use the library and capture waveforms.plot_data.py
plots captured datasets (single channel or XY mode) and outputs a PNG file. See first picture below.plot_data_avg.py
does a moving average plotting of XY mode captured datasets and outputs a PDF file. See second picture below (different dataset than the first picture).
- Tektronix 222 RS-232 manual
- See also this other library (unfortunately also very partial) for more references.