7 itrace::reporterrorsummary, Itrace::reporterrorsummary – Teledyne LeCroy FireInspector Automation Application Programming Interface User Manual

Page 42

Advertising
background image

38

FireInspector Automation User’s Manual

CATC

Version 1.0

2.4.7

ITrace::ReportErrorSummary

Saves trace error summary information into specified text file.

Syntax

HRESULT ReportErrorSummary (

[in] BSTR file_name );

Parameters

•

file_name

–

string providing the full pathname to file where error summary report is

created

Return values

•

ANALYZERCOMERROR_UNABLESAVE

–

unable to create trace information report

Remarks
Creates error summary file if necessary. Stores error summary in specified file. Here is an
example of data stored using this method call:

Error report for Errors.fdb recording file.

_______|___________________________________________________

Bad Transaction Codes (1):

_______| 0.4;

_______|___________________________________________________

Bad Header CRCs (1):

_______| 0.0;

_______|___________________________________________________

Bad Data CRCs (1):

_______| 0.1;

_______|___________________________________________________

Bad PHY Packets (2):

_______| 0.6; 0.7;

_______|___________________________________________________

Bad Acknowledges (1):

_______| 0.3;

_______|___________________________________________________

Data Length/Payload Mismatches (0):

_______|___________________________________________________

Bad Reserved Fields (not all 0's) (1):

_______| 0.2;

_______|___________________________________________________

Example

WSH:

Set Analyzer = WScript.CreateObject("CATC.FwAnalyzer")

CurrentDir = Left(WScript.ScriptFullName,

InstrRev(WScript.ScriptFullName, "\"))

Set Trace = Analyzer.MakeRecording (CurrentDir &

"Input\test_ro.rec")

Trace.ReportErrorSummary CurrentDir &

"Output\error_summary.txt"

Advertising