6 itrace::reportfileinfo, Itrace::reportfileinfo – Teledyne LeCroy FireInspector Automation Application Programming Interface User Manual

Page 40

Advertising
background image

36

FireInspector Automation User’s Manual

CATC

Version 1.0

2.4.6

ITrace::ReportFileInfo

Saves trace information into specified text file.

Syntax

HRESULT ReportFileInfo (

[in] BSTR file_name );

Parameters

•

file_name

–

string providing the full pathname to file where trace information report

is created

Return values

•

ANALYZERCOMERROR_UNABLESAVE

–

unable to create trace information report

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

File name: ObexSample.fdb

Comment:

Saved as portion of the file "ObexSample.fdb" ( 234162

packets ), from packet # 0 to packet # 234161Within this

block some packets were hidden.

Number of packets: 33014

Recorded with application version 1.30 ( Build 59 )

Analyzer Serial Number 1159, Traffic Generation not enabled

Firmware version 1.01 ( ROM 1.00 )

BusEngine version 1.09

BusEngine type 0

Number of markers: 17

Recording Options:

Options Name: Default

Recording Mode: Snapshot

Buffer Size: 127.996 MB

Post-trigger position: 50%

Recorded to file: data.fdb

Null: 16417

Poll: 12554

DM1: 114

DH1: 3929

Sum of above: 33014

Total: 33014

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.ReportFileInfo CurrentDir &

"Output\file_info.txt"

Advertising