Support
Technical Library

Technical Library

Please select the Programming Example of your preference. NOTE: Programming Example attachments require that you are a valid registered user at the Teledyne LeCroy web site.

Programming Examples

Low-Speed Measurement Data Logger Script

This script software-triggers the scope every 5 seconds and then appends the "min", "max" and "mean" results for measurement P1 to a file on the oscilloscope's hard drive.


Instructions

This script software-triggers the scope every 5 seconds and then appends P1 min, max and mean results to D:\Hardcopy\logfile.txt

Installing the script:
Place in D:\CustomDSO or D:\Scripts (Actual location doesn't matter)

Running the script
XDEV users: Assign the script to a CustomDSO button, and make sure that "Execute scripts asynchronously" is checked.
Everyone: Double-click on the file from Windows Explorer

Stopping the script:
Turn measurements off to stop the script.

Possible user modifications:
Modify the value in the WScript.Sleep line to change the time between acquisitions.
Set the filename for the logfile in the "Set MyFile" line.
Modify the parameters to log.

Scope setup requirements:
The measure table must be turned on when launching the script, otherwise it will end immediately

Compatibility

All Windows-based LeCroy oscilloscopes

Environment

VBScript example that can be run from Windows or, for scopes with the XDEV option, via a "CustomDSO" button. NO ADDITIONAL SOFTWARE IS REQUIRED TO RUN THIS EXAMPLE.





NOTE: Programming Example attachments require that you are a valid registered user at the Teledyne LeCroy web site.


 Back to Programming Examples