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

  • 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 23
18
Automation API for CATC Bluetooth Analyzers
CATC Ver. 1.40
2.3.9 IAnalyzer::MakeRecording
Makes recording with specified recording options file
Parameters
ro_file_name - string providing the full pathname to recording options file; if the
parameter is omitted then recording starts with default recording options
trace - address of a pointer to the BTTrace object primary interface
Return values
Remarks
This method acts like the
'StartRecording' method but will not return until recording is com-
pleted.
BTTrace object is created via this method call, if call was successful.
Recording options file is the file with extension .rec created by BTAnalyzer application.
You can create such file when you select “Setup – Recording Options…” from BTAna-
lyzer application menu, change the recording options in the appeared dialog and select
“Save…” button.
Example
WSH:
CurrentDir = Left(WScript.ScriptFullName, InstrRev(WScript.ScriptFullName,
"\"))
Set Analyzer = WScript.CreateObject("CATC.Merlin")
Set Trace = Analyzer.MakeRecording (CurrentDir & "Input\test_ro.rec")
C++:
IDispatch* trace;
IBTAnalyzer* bt_analyzer;
BSTR ro_file_name;
HRESULT hr;
. . .
try
{
trace = bt_analyzer->MakeRecording( ro_file_name )
}
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;
}
HRESULT MakeRecording (
[in] BSTR ro_file_name,
[out, retval] IDispatch** trace );
Zobrazit stránku 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 109 110

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

Žádné komentáře