Connecting to TDS500 Series by Tektronix in Python
Instrument Card
Device Specification: here
Manufacturer card: TEKTRONIX
Tektronix, Inc., historically widely known as Tek, is an American company best known for manufacturing test and measurement devices such as oscilloscopes, logic 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 TDS500 Series in Python
OSCILLOSCOPES > TEKTRONIX
PROTOCOLS > SCPI
To connect to a TDS500 Series Oscilloscope using Instrumentkit, you can use the following Python script:
from instrumentkit import tektronix
# Connect to the oscilloscopetek = tektronix.TekTDS5xx.open_tcpip('192.168.0.2', 8888)
# Access the channels and read waveform datachannel1 = tek.channel[0]x, y = channel1.read_waveform()
# Print the waveform dataprint("X values:", x)print("Y values:", y)
# Disconnect from the oscilloscopetek.close()
This script connects to the oscilloscope at IP address ‘192.168.0.2’ and port 8888 using the open_tcpip
method of the TekTDS5xx
class. It then accesses the first channel of the oscilloscope using tek.channel[0]
and reads the waveform data using the read_waveform
method. Finally, it prints the X and Y values of the waveform and closes the connection to the oscilloscope using the close
method.