Note. Version 1.0.0 was created by github copilot. Python-based EPICS PVAccess server for LeCroy oscilloscopes.
It is based on p4p and epicsdev packages and it can run standalone on Linux, OSX, and Windows platforms.
It was developed using the MAUI Remote Control and Automation Manual and tested with LeCroy/Teledyne oscilloscopes.
- Remote control of LeCroy oscilloscopes via EPICS PVAccess
- Support for multiple channels (configurable, default 4)
- Waveform acquisition and real-time data streaming
- Trigger control and configuration
- Horizontal and vertical scale adjustments
- Panel setup save/recall functionality
- VBS (Visual Basic Scripting) support for advanced control
pip install epicsdev_lecroyFor control GUI and plotting:
pip install pypeto pvplotTo start the server:
python -m epicsdev_lecroy -r 'TCPIP::192.168.1.100::INSTR'-r, --resource: VISA resource string to access the device (default:TCPIP::192.168.1.100::INSTR)-d, --device: Device name for PV prefix (default:lecroy)-i, --index: Device index for PV prefix (default:0)-c, --channels: Number of channels (default:4)-v, --verbose: Increase verbosity (-vor-vv)
Connect via TCP/IP socket:
python -m epicsdev_lecroy -r 'TCPIP::192.168.1.100::1861::SOCKET'Connect with custom device name:
python -m epicsdev_lecroy -r 'TCPIP::192.168.1.100::INSTR' -d scope1Control GUI:
python -m pypeto -c path_to_repository/config -f epicsdev_lecroyThis driver should work with LeCroy oscilloscopes that support the MAUI remote control interface, including:
- WaveSurfer series
- WaveRunner series
- WavePro series
- HDO series
- Other Teledyne LeCroy scopes with MAUI interface
The driver uses LeCroy SCPI commands and VBS (Visual Basic Scripting) for device control. Key commands include:
C<n>:TRACE- Enable/disable channel displayC<n>:VOLT_DIV- Set vertical scaleC<n>:OFFSET- Set vertical offsetTIME_DIV- Set horizontal scaleTRIG_MODE- Set trigger mode (AUTO, NORM, SINGLE, STOP)TRIG_SELECT- Set trigger source- VBS commands for advanced control
Performance depends on the oscilloscope model, network interface (1GbE vs 10GbE), and memory depth. LeCroy scopes typically provide high-speed data transfer over their network interfaces.
- The driver uses binary data transfer (WORD format) for efficient waveform acquisition
- Big-endian byte order is used for compatibility
- VBS scripting allows advanced control of scope features not available through standard SCPI
- Some features may vary depending on the specific LeCroy model
MIT License - see LICENSE file for details.
Andrey Sukhanov (sukhanov@bnl.gov)