beautypg.com

3 running the analyzer and capturing a trace file, Running the analyzer and capturing a trace file – Teledyne LeCroy ST Automated Test Suite User Manual User Manual

Page 15

background image

15

4.3 Running the Analyzer and Capturing a Trace File

To run an Analyzer project and create a trace file, you have two options. The first one is Start/Stop
Recording
, and the second one is MakeRecording.

Using either option, the captured trace file is stored in the Trace File Path specified in the Settings
dialog. The trace file name is the test name and is in a folder with a name similar to the device (DUT)
name specified in the Configuration dialog.

Start/Stop Recording

You can start capturing by calling the StartRecording function, using as input parameter the path of
the Analyzer project.


MySASAutomation.StartRecording("E:\ AnalyzerOnly.sac")
If Err.Number <> 0 Then

MySTATS.ReportError Err.number, Err.Description

Else

MySTATS.ReportText ("Recording is started")

End If

WScript.Sleep(10000) ' Wait 10 seconds for our capturing process.

You stop recording by calling the StopRecording function after waiting enough time for the capturing
process to complete. The parameter specifies whether you want to stop capturing only or you want to
create your trace file also. The FALSE value creates a trace file.


MySASAutomation.StopRecording(FALSE)
If Err.Number <> 0 Then

MySTATS.ReportError Err.number, Err.Description

Else

MySTATS.ReportText ("Recording is stopped")

End If

To get the object of the generated trace file, call the OpenFile function to open the file and return the
reference.


Set SASTracer = MySASAutomation.OpenFile("E:\Output\Device 1\AnalyzerOnly.scs")
If Err.Number <> 0 Then

MySTATS.ReportError Err.number, Err.Description

Else

MySTATS.ReportText ("Trace file is opened")

End If