Teledyne LeCroy SAS_SATA Tracer_Trainer Automation API Manual User Manual

Page 79

Advertising
background image

LeCroy Corporation

Automation API for SAS/SATATracer/Trainer

Manual Version 1.11

79


WSH:

. . .

Set Trace = Analyzer.OpenFile( TraceName ) ' Open the trace
Set VSEngine = Trace.GetVScriptEngine( VScript ) ' Get VS Engine object

Result = VSEngine.RunVScript

MyIntVar = VSEngine.GetScriptVar( "MyIntVar" )
' Let's suppose that MyIntVar contains an integer.
MyStrVar = VSEngine.GetScriptVar( "MyStrVar" )
' Let's suppose that MyStrVar contains a string.

MsgBox " MyIntVar = " & CStr(MyIntVar) & ", MyStrVar = " & MyStrVar

Advertising