Skip to content

Connecting to Lecroydso by Lecroy in Python

Instrument Card

This Class Allows The Acquisition Of A Waveform (The Description And The Data), From A Specific C…

Lecroydso

Device Specification: here

Manufacturer card: LECROY

LECROY

Teledyne LeCroy, Inc. manufactures and distributes electronic measuring instruments. The Company produces analyzers, measurement, and testing solutions including oscilloscopes, production test digitizers, and electronic components. Teledyne LeCroy serves customers worldwide.

  • Headquarters: s Chestnut Ridge, New York, USA
  • Yearly Revenue (millions, USD): 178
  • Vendor Website: here

Demo: Measure signal width and phase with a Tektronix oscilloscope

Connect to the Lecroydso in Python

PROTOCOLS > SCPI

To connect to a LeCroy Oscilloscope using Pytango, you can use the following code:

import PyTango
from lecroydso import DSOConnection
from lecroydso import LeCroyDSO
# Create a connection to the oscilloscope
connection = DSOConnection("your_oscilloscope_address")
# Connect to the oscilloscope
connection.connect()
# Create an instance of the LeCroyDSO class
lecroy_dso = LeCroyDSO(connection)
# Now you can use the LeCroyDSO instance to interact with the oscilloscope
# For example, you can get the serial number of the oscilloscope
serial_number = lecroy_dso.get_serial_number()
print("Serial Number:", serial_number)
# Disconnect from the oscilloscope
connection.disconnect()

Note: Replace “your_oscilloscope_address” with the actual address of your oscilloscope.