beautypg.com

7 ianalyzer::stoprecording, Ianalyzer::stoprecording – Teledyne LeCroy USB Analyzer Automation Manual User Manual

Page 17

background image

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite

17

2.1.7 IAnalyzer::StopRecording


HRESULT StopRecording (

[in] BOOL abort_upload );

Stops a recording started by the StartRecording

method.

Parameters

abort_upload

TRUE, if caller wants to abort upload,

no trace file is created.

FALSE, if you want to upload the recorded trace

Return values

ANALYZERCOMERROR_EVENTSINKNOTINSTANTIATED

Event sink was not instantiated.

ANALYZERCOMERROR_UNABLESTOPRECORDING

Error stopping recording

Remarks

Stops recording started by the

StartRecording

method. The event is 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++:

IUsbAnalyzer* usb_analyzer;
. . .
try
{

usb_analyzer->StopRecording( FALSE )

}
catch ( _com_error& er)
{

if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("UsbAnalyzer client"), MB_OK );
else
::MessageBox( NULL, er.ErrorMessage(), _T("UsbAnalyzer client"), MB_OK );
return 1;

}