Skip to content

Connecting to WaveSurfer 4000HD by Teledyne in Python

Instrument Card

WaveSurfer 4000HD extends Teledyne LeCroy’s leadership in High Definition Oscilloscopes with a bright, 12.1” touch screen display, performance without compromise, and price points that fit your budget.

Device Specification: here

Manufacturer card: TELEDYNE

Teledyne LeCroy is an American manufacturer of oscilloscopes, protocol analyzers and other test equipment. LeCroy is now a subsidiary of Teledyne Technologies.

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

Demo: Measure signal width and phase with a Tektronix oscilloscope

Connect to the WaveSurfer 4000HD in Python

PROTOCOLS > SCPI

To connect to a WaveSurfer 4000HD Oscilloscope using Instrumentkit, you can use the following code:

import instrumentkit as ik
# Connect to the oscilloscope
oscilloscope = ik.teledyne.MAUI.open_visa("TCPIP0::192.168.0.10::INSTR")
# Perform operations on the oscilloscope
# For example, you can set the time division
oscilloscope.time_div = 200e-9
# You can also access and control the channels
channel = oscilloscope.channel[0]
channel.trace = True
channel.coupling = channel.Coupling.dc50
channel.scale = 1.0
# Read waveform data from the channel
xdat, ydat = channel.read_waveform()
# Print the waveform data
print("X Data:", xdat)
print("Y Data:", ydat)
# Close the connection to the oscilloscope
oscilloscope.close()

This code connects to the oscilloscope at the specified IP address (“TCPIP0::192.168.0.10::INSTR”) using the VISA protocol. It then reads the waveform data from the first channel and prints the X and Y data.

Note: Make sure to replace “TCPIP0::192.168.0.10::INSTR” with the actual IP address of your WaveSurfer 4000HD Oscilloscope.