Manual

WM-RCM-E Rev D
ISSUED: February 2005
69
C
HAPTER
S
IX
Linking With Automation
What is Automation ?
OVERVIEW
Automation enables you to control programs from your own applications as if you were using a keyboard and a
mouse. For example, if you want to use Excel, Mathcad, MATLAB, or other proprietary programs, you can do
so within the chain of operations of the oscilloscope, without having to go outside the X-Stream software to
instantiate the proprietary software. Here we offer a simple introduction.
SOME DETAILS
Here is the start of a typical instrument setup file. You dont necessarily have to know about this to use the
instrument, but any setup file is a convenient source of examples to illustrate the workings of Automation in
the instrument.
' WaveMaster ConfigurationVBScript ...
On Error Resume Next
set WaveMaster = CreateObject("LeCroy.WaveMasterApplication")
' AladdinPersona ...
WaveMaster.HideClock = False
WaveMaster.TouchScreenEnable = True
Set Display = WaveMaster.Display
' Display ...
Display.GridMode = "Dual" ' The scope variables are
Display.TraceStyle = "Line" ' in groups, such as Display,
Display.GridIntensity = 70 ' Acquisition, Horizontal,
Display.GridOnTop = False ' and Trigger.
Display.AxisLabels = False
Display.NumSegmentsDisplayed = 1 ' The dot notation is well
Display.StartSegment = 1 ' known in object-oriented
Display.SegmentMode = "Adjacent" ' programming. It makes
Display.ScreenSaveEnable = True ' hierarchies easy to create.
Display.ScreenSaveTimeout = 60 ' Properties can be handed down
Display.LockPersistence = "AllLocked" ' through a hierarchy.
Display.PersistenceStyle = "ColorGraded"
Display.Persisted = False
Display.PersistenceMonoChrome = True ' To save a lot of typing, you
Display.Persistence3d = False ' can write statements like
Display.Persist3DQuality = "Solid" ' Set Display = WaveMaster.Display
Display.AxisXRotation = 45 ' as a kind of shorthand.