Communication with Tektronix oscilloscopes


Keywords
oscilloscope, pyvisa, tektronix
License
MIT
Install
pip install tekinstr==1.0.24

Documentation

Azure PyPI

tekinstr

Installation

> pip install tekinstr

Usage

>>> from tekinstr import CommChannel
>>> with CommChannel("<ip address>") as tek:
...     wf = tek.oscilloscope.read("CH1")
>>> import matplotlib.pyplot as plt
>>> plt.plot(*wf.to_xy())
[<matplotlib.lines.Line2D at ...>]
>>> plt.show()

It is possible to save the screen capture to a network or USB drive. In this example, a USB memory stick is installed and the current working directory is 'E:/'.

>>> with CommChannel("<ip address>") as tek:
...     tek.save_image("capture.png")

Currently support models

  • MDO3000 series
  • MSO4000 series
  • TDS3000 series