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