beautypg.com

8 ianalyzer::stoprecording, Ianalyzer::stoprecording, Catc ver. 1.40 – Teledyne LeCroy Automation API for Bluetooth Analyzers User Manual

Page 23

background image

17

Automation API for CATC Bluetooth Analyzers

CATC

Ver. 1.40

2.3.8 IAnalyzer::StopRecording

Stops recording started by

StartRecording

method

Parameters

abort_upload

TRUE, if caller wants to abort upload, no trace file will be created,

FALSE if want to upload recorded trace

Return values

ANALYZERCOMERROR_EVENTSINKNOTINSTANTIATED

-

event sink was not instantiated

ANALYZERCOMERROR_UNABLESTOPRECORDING

-

error stopping recording

Remarks

Stops recording started by

'StartRecording'

method. The event will be issued when recording

is actually stopped (via

_IAnalizerEvents

interface), if the parameter of method call was

FALSE.

Example

VBScript:

RUNAT=Server

ID = Analyzer

CLASSID = "clsid:0B179BB3-DC61-11d4-9B71-000102566088"

>

C++:

IBTAnalyzer* bt_analyzer;

. . .

try

{

bt_analyzer->StopRecording( FALSE )

}

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 StopRecording (

[in] BOOL abort_upload );