Custom math and measurements, Customdso – Teledyne LeCroy WaveExpert series Automation Manual User Manual
Page 20
A
BOUT
A
UTOMATION
1-8
916435 RevA
As a quick example of how setups can be used as the starting point for controlling applications, scroll down to the
end of the file and add the following code (shown in bold-type) to the file.
' Place any custom VBScript code after this point
'
' Perform an Auto Setup
XStreamDSO.AutoSetup
When this setup is recalled, the complete state of the instrument will be restored, followed by an Auto-Setup
operation.
Obviously this is a fairly trivial “application,” but it is easy to imagine how automated testing could be performed
with the introduction of loops and conditional execution.
N
N
O
O
T
T
E
E
:
: Setup files stored by the instrument have file extension “.lss” (LeCroy Setup Script). These
files are syntactically identical to Microsoft Visual Basic Script (VBScript) files, which have a “.vbs”
extension.
T
T
I
I
P
P
:
: A simple alternative to recalling the panel into the instrument is to execute it, either by double-
clicking on the .lss file in Windows Explorer, or by executing it from the command line.
CUSTOM MATH AND MEASUREMENTS
Custom Math and Measurements can be coded using VBScript in instruments equipped with the XDEV and/or
XMAP software options. Using Automation control of the instrument, decisions can be made during custom
processing that reconfigure the DSO.
When you are developing custom processing routines using the reference section of this manual,
app.Acquisition.Cx.Out.Result
may be used as a comprehensive reference to the Result Object, which is used
to describe waveform data (InResult, InResult1, InResult2, OutResult).
For more detail about this capability, see the “Customization” section of the on-line Help Manual.
CustomDSO
CustomDSO enables customization of the instrument’s UI in instruments equipped with the XDEV and/or XMAP
options. Two modes of operation are supported: Basic mode and Plug-in mode.
In Basic mode a Visual Basic Script (VBScript) program can be assigned to each of 8 buttons that can, optionally,
appear at the bottom of the instrument’s display. By means of Automation, each of these may further reconfigure
all 8 buttons, which would allow simple menu hierarchies to be generated.
In Plug-in mode an ActiveX control, created in any of a number of programming languages, can be inserted into
the instrument’s menu system. Once “embedded,” this Plug-in can take full control of the DSO using Automation.
Full documentation on CustomDSO is available in the CustomDSO section of the on-line Help Manual.
Add this
code