User manual

Table Of Contents
Part 3: Automation Control Variable Reference
app.WebEditor
CVARs related to the WebEditor, which is used to create custom processing chains ("webs") associated
with a single function, parameter, or Pass/Fail qualifier.
Tip: The easiest way to determine the proper syntax for WedEditor objects is to set up the
WebEditor on the oscilloscope as you would like, then save a setup file. The .lss file will embed the
Automation objects for that WebEditor function. This tip can be applied to any type of setup you
wish to perform remotely.
Actions
Action Description
app.WebEditor.ClearSweeps
Clears any accumulated data for nodes such as Average, Persistence, etc.
that reside in the processing web.
Methods
app.WebEditor.AddConnection([in] VARIANT destProcessor, [in] VARIANT destInputPin, [in] VARIANT
sourceProcessor, [in] VARIANT sourceOutputPin)
Adds a connection between two 'pins' of nodes placed within the Web Editor. Pins are described by the
name of the node, and the zero-based index of the pin on that node.
app.WebEditor.AddPreview([in] VARIANT sourceProcessor, [in] VARIANT sourcePin, [in] BSTR
previewName, [in] double xPosition, [in] double yPosition, [in] BSTR associatedExecName)
Adds a Preview to the specified pin of the specified node. The coordinates specify where the preview will
appear on the Web, with 0,0 being the top left-hand corner.
app.WebEditor.AddProcessor([in] VARIANT processorOrClassId, [in] BSTR requestedName, [in] double
xPosition, [in] double yPosition)
Adds a named 'processor' to the web. To determine the name of a processor just place it on the web using
the GUI and hover the mouse over the node. The 'ProgID' of the node, in the format LeCroy.<procName>'
will appear. Note that when adding processors from automation there is no distinction between Measure,
Math, and Pass/Fail processors.
' Create a Waveform Averager, name it "MyAvg", and place it at x=200, y=30
app.WebEditor.AddProcessor "LeCroy.Average", "MyAvg", 200, 30
3-33