Teledyne-lecroy Automation API for Bluetooth Analyzers Manual de usuario Pagina 15

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 110
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 14
9
Automation API for CATC Bluetooth Analyzers
CATC Ver. 1.40
2.3.2 IAnalyzer::GetVersion
Retrieves the current version of specified subsystem
Parameters
version_type - subsystem which 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_INVALIDVERSIONTYPEspecified 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.Merlin")
SwVersion = Analyzer.GetVersion(0)
BEVersion = Analyzer.GetVersion(1)
FwVersion = Analyzer.GetVersion(2)
MsgBox "Software" & SwVersion & "BusEngine" & BEVersion & "Firmware" &
FwVersion
C++:
HRESULT hr;
IBTAnalyzer* poBTAnalyzer;
// create BTAnalyzer object
if ( FAILED( CoCreateInstance(
CLSID_BTAnalyzer,
NULL, CLSCTX_SERVER,
IID_IBTAnalyzer,
(LPVOID *)&poBTAnalyzer ) )
return;
WORD sw_version;
try
{
sw_version = m_poAnalyzer->GetVersion( ANALYZERVERSION_SOFTWARE );
}
catch ( _com_error& er)
{
if (er.Description().length() > 0)
::MessageBox(NULL, er.Description(), _T("BTAnalyzer client")
HRESULT GetVersion (
[in] EAnalyzerVersionType version_type,
[out, retval] WORD* analyzer_version );
Vista de pagina 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 109 110

Comentarios a estos manuales

Sin comentarios