02_xstreamautomation_toc_ch1_aboutautomation, Chapter 1: about automation – Teledyne LeCroy WaveExpert series Automation Manual User Manual
Page 3
T
ABLE OF
C
ONTENTS
916435 RevA
iii
CHAPTER 1: ABOUT AUTOMATION
OVERVIEW OF AUTOMATION ............................................................................................. 1-2
Standards ............................................................................................................................................................... 1-2
Compatibility with Other LeCroy Scopes ............................................................................................................... 1-2
Automation and IEEE 488.2 Remote Control – How Do They Compare?
..................................................... 1-2
* ActiveDSO is a Active-X based driver for LeCroy oscilloscopes ......................................................................... 1-3
General Characteristics .......................................................................................................................................... 1-3
INTRODUCTION TO THE X-STREAM BROWSER .............................................................. 1-4
STEP-BY-STEP INTRODUCTION TO AUTOMATION USING VBScript ............................. 1-5
WHERE IS AUTOMATION USED? ....................................................................................... 1-7
SETUPS (PANEL FILES) ARE PROGRAMS! ...................................................................... 1-7
CUSTOM MATH AND MEASUREMENTS ............................................................................ 1-8
CustomDSO ........................................................................................................................................................... 1-8
Control from External Applications ......................................................................................................................... 1-9
From Visual Basic ......................................................................................................................................... 1-10
From MATLAB .............................................................................................................................................. 1-10
From MS Office (Excel) ................................................................................................................................ 1-11
CONTROL VARIABLES EXPLAINED ................................................................................ 1-12
ACCESSING WAVEFORM/MEASUREMENT RESULTS ................................................... 1-14
Waveforms ........................................................................................................................................................... 1-14
Measurements...................................................................................................................................................... 1-14
Result Status ........................................................................................................................................................ 1-16
SYNCHRONIZATION .......................................................................................................... 1-17
GOOD PRACTICES ............................................................................................................. 1-19
EXAMPLES ......................................................................................................................... 1-19
Example 1: Excel Macro to Perform FFT of C1 ................................................................................................... 1-19
Example 2: VBScript Program to Perform FFT of C1 and Store Results in Text File .......................................... 1-20
Example 3: Script to Measure the Rise Time of the Signal on C1 and Display It in a Popup Window ................ 1-21
EARLY AND LATE BINDING .............................................................................................. 1-22
VBS REMOTE COMMAND ................................................................................................. 1-23
X-STREAM DSO OBJECTS ................................................................................................ 1-24