Skip to content

Connecting to TDS520/TDS540 by Tektronix in Python

Instrument Card

TDS520/TDS540

Device Specification: here

Manufacturer card: TEKTRONIX

TEKTRONIX

Tektronix, Inc., historically widely known as Tek, is an American company best known for manufacturing test and measurement devices such as oscilloscopeslogic analyzers, and video and mobile test protocol equipment.

  • Headquarters: USA
  • Yearly Revenue (millions, USD): 5800
  • Vendor Website: here

Demo: Measure signal width and phase with a Tektronix oscilloscope

Connect to the TDS520/TDS540 in Python

OSCILLOSCOPES > TEKTRONIX

PROTOCOLS > SCPI

To connect to a TDS520/TDS540 Oscilloscope using Instrumentkit, you can use the following Python script:

from instrumentkit import tektronix
# Connect to the oscilloscope
tek = tektronix.TekTDS5xx.open_tcpip('192.168.0.2', 8888)
# Access the channels and read waveform data
channel1 = tek.channel[0]
x, y = channel1.read_waveform()
# Print the waveform data
print("X values:", x)
print("Y values:", y)
# Disconnect from the oscilloscope
tek.close()

This script connects to the oscilloscope at IP address ‘192.168.0.2’ and port 8888. It then accesses the first channel of the oscilloscope and reads the waveform data. Finally, it prints the X and Y values of the waveform.