beautypg.com

4 iusbanalyzer5 interface, 1 iusbanalyzer5::bindunit, 2 iusbanalyzer5::mergetracefiles – Teledyne LeCroy USB Analyzer Automation Manual User Manual

Page 39: Iusbanalyzer5 interface, Iusbanalyzer5::bindunit, Iusbanalyzer5::mergetracefiles

background image

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite

39

2.4 IUsbAnalyzer5 interface

The IUsbAnalyzer5

interface is the fifth interface for the UsbAnalyzer object. It inherits and extends

some analyzer-related functionality exposed via the IUsbAnalyzer

interface.

IID : 47CCA8A8-C4AC-4b90-ABD1-16DC2A5351FE

2.4.1 IUsbAnalyzer5::BindUnit


HRESULT BindUnit ([

in

] WORD box_sn);

The method should be called when the API is used to control multiple anlayzer units. After creating any
analyzer object (for each unit), it is required to bind analyzer object to desired unit by calling this method.

Parameters

box_sn

Specifies target UNIT serial number.

Return values

ANALYZERCOMERROR_ANALYZERNOTCONNECTED Analyzer is not connected

ANALYZERCOMERROR_UNABLESTARTRECORDING Multiple Unit Autopmation

License is not available

Remarks
Activation of this feature requires specific license.

2.4.2 IUsbAnalyzer5::MergeTraceFiles


HRESULT MergeTraceFiles (
[

in

] BSTR file_name_1,

[

in

] BSTR file_name_2,

[

in

] BSTR output_file_name)

The method is used for merging two trace file in one trace.

Parameters

file_name_1

String parameter specifies first input file path


file_name_2

String parameter specifies second input file path


output_file_name String parameter specifies output file path

Return values

ANALYZERCOMERROR_UNABLETOMERGEFILES Unable to merge files,

check files path and make sure they are not open