Connecting to TDS520/TDS540 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 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 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. 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.