beautypg.com

7 iuwbanalyzer::stoprecording, Iuwbanalyzer::stoprecording – Teledyne LeCroy UWBTracer Automation Manual User Manual

Page 17

background image

LeCroy

UWBTracer Automation API Reference Manual

Manual Version 3.02

13

3.1.7 IUwbAnalyzer::StopRecording


HRESULT StopRecording (

[in] BOOL abort_upload );

Stops recording started by the StartRecording method.

Parameters

abort_upload

TRUE, if caller wants to abort upload. No trace file will be created.
FALSE, if caller wants to upload recorded trace

Return values

ANALYZERCOMERROR_UNABLESTOPRECORDING

error when stopping recording

Remarks
Stops recording started by the StartRecording method. The event is issued when recording is actually
stopped (via the _IAnalizerEvents interface), if the parameter of the method call was FALSE.

Example


VBScript:

RUNAT=Server
ID = Analyzer
CLASSID = "clsid:EE43DE29-65CA-4904-B111-32919E00D061"

>




C++:

IUwbAnalyzer* UWB_analyzer;

. . .

try
{

UWB_analyzer->StopRecording( FALSE )

}
catch ( _com_error& er)
{

if (er.Description().length() > 0)

::MessageBox( NULL, er.Description(), _T("UwbAnalyzer client"), MB_OK );

else

::MessageBox( NULL, er.ErrorMessage(), _T("UwbAnalyzer client"), MB_OK );

return 1;

}