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
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a WaveSurfer 4000HD Oscilloscope using Instrumentkit, you can use the following code:
import instrumentkit as ik
# Connect to the oscilloscopeoscilloscope = ik.teledyne.MAUI.open_visa("TCPIP0::192.168.0.10::INSTR")
# Perform operations on the oscilloscope# For example, you can set the time divisionoscilloscope.time_div = 200e-9
# You can also access and control the channelschannel = oscilloscope.channel[0]channel.trace = Truechannel.coupling = channel.Coupling.dc50channel.scale = 1.0
# Read waveform data from the channelxdat, ydat = channel.read_waveform()
# Print the waveform dataprint("X Data:", xdat)print("Y Data:", ydat)
# Close the connection to the oscilloscopeoscilloscope.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.