2 primary dual interface for analyzer, 1 iusbanalyzer dual interface, 1 ianalyzer::getversion – Teledyne LeCroy USB Analyzer Automation Manual User Manual
Page 8: Primary dual interface for analyzer, Iusbanalyzer dual interface, Ianalyzer::getversion

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
8
2 Primary Dual Interface for Analyzer
2.1 IUsbAnalyzer Dual Interface
IUsbAnalyzer
interface is the primary interface for the
UsbAnalyzer
object. It derives from the
IAnalyzer
interface that implements the common functionality for all Teledyne LeCroy Analyzers.
Class ID:
136D64A4-3CD5-4b41-974A-C7039E3FC292
App ID:
CATC.USBTracer
COM server:
UsbSuite.exe
IUsbAnalyzer IID:
C37E7603-E3E5-48b4-8F79-080DBB543F0C
2.1.1 IAnalyzer::GetVersion
HRESULT GetVersion (
[in] EAnalyzerVersionType version_type,
[out, retval] WORD* analyzer_version );
Retrieves the current version of the specified subsystem.
Parameters
version_type
Subsystem whose version is requested;
EAnalyzerVersionType enumerator has the following
values:
ANALYZERVERSION_SOFTWARE
( 0 ) Software
ANALYZERVERSION_BUSENGINE
( 1 ) Bus engine
ANALYZERVERSION_FIRMWARE
( 2 ) Firmware
analyzer_version Current version of subsystem requested
Return values
ANALYZERCOMERROR_INVALIDVERSIONTYPE
Specified version type is invalid.
ANALYZERCOMERROR_ANALYZERNOTCONNECTED
Analyzer device is not connected.
Remarks
Example
WSH:
CurrentDir = Left(WScript.ScriptFullName, InstrRev(WScript.ScriptFullName, "\"))
Set Analyzer = WScript.CreateObject("CATC.USBTracer")
SwVersion = Analyzer.GetVersion(0)
BEVersion = Analyzer.GetVersion(1)
FwVersion = Analyzer.GetVersion(2)
MsgBox "Software" & SwVersion & "BusEngine" & BEVersion & "Firmware" & FwVersion