Teledyne-lecroy Automation API for Bluetooth Analyzers Uživatelský manuál Strana 28

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 110
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 27
22
Automation API for CATC Bluetooth Analyzers
CATC Ver. 1.40
2.3.12 IAnalyzer::GetRecordingOptions
Retrieves primary interface for access to recording options
Parameters
recording_options - address of a pointer to the BTRecOptions object primary
interface
Return values
Remarks
BTRecOptions object is created via this method call, if call was successful.
Example
WSH:
Set Analyzer = WScript.CreateObject("CATC.Merlin")
Set RecOptions = Analyzer.GetRecordingOptions
C++:
HRESULT hr;
IBTAnalyzer* poBTAnalyzer;
// create BTAnalyzer object
if ( FAILED( CoCreateInstance(
CLSID_BTAnalyzer,
NULL, CLSCTX_SERVER,
IID_IBTAnalyzer,
LPVOID *)&poBTAnalyzer ) )
return;
// open trace file
IDispatch* rec_opt;
try
{
rec_opt = poBTAnalyzer->GetRecordingOptions();
}
catch ( _com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("BTAnalyzer client"),
MB_OK );
else
::MessageBox( NULL, er.ErrorMessage(), _T("BTAnalyzer client"),
MB_OK );
return 1;
}
// query for VTBL interface
IBTRecOptions* ib_rec_opt;
hr = rec_opt->QueryInterface( IID_IBTRecOptions, (LPVOID
*)&ib_rec_opt );
rec_opt->Release();
if( FAILED(hr) )
return;
HRESULT GetRecordingOptions (
[out, retval] IDispatch** recording_options );
Zobrazit stránku 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 109 110

Komentáře k této Příručce

Žádné komentáře