Data Sheet
Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
10
ANALYZERVERSION_SOFTWARE ( 0 ) Software
ANALYZERVERSION_BUSENGINE ( 1 ) Bus engine
ANALYZERVERSION_FIRMWARE ( 2 ) Firmware
analyzer_version Current version of subsystem requested.
Value is encoded in BCD.
Example: 0x0312 would mean version 3.12
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 = CLng(Analyzer.GetVersion(0))
SwOutput = ((SwVersion And &HFF00) / 256) & "." & String(2 - Len(SwVersion And &HFF),
"0") & (SwVersion And &HFF)
BEVersion = CLng(Analyzer.GetVersion(1))
BEOutput = ((BEVersion And &HFF00) / 256) & "." & String(2 - Len(BEVersion And &HFF),
"0") & (BEVersion And &HFF)
FwVersion = CLng(Analyzer.GetVersion(2))
FwOutput = ((FwVersion And &HFF00) / 256) & "." & String(2 - Len(FwVersion And &HFF),
"0") & (FwVersion And &HFF)
MsgBox "Software: " & SwOutput & VbCrLf & "BusEngine: " & BEOutput & VbCrLf &
"Firmware: " & FwOutput