beautypg.com

6 ianalyzer::stoprecording, Parameters, Return values – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 17: Remarks, Example, Sub btnstoprecording_onclick, Ipeanalyzer* pe_analyzer, Ianalyzer::stoprecording

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

12

3.1.6 IAnalyzer::StopRecording


HRESULT StopRecording (

[in] BOOL abort_upload )

Stops recording started by the IAnalyzer::StartRecording (see Page 10) method.

Parameters

abort_upload

TRUE if the caller wants to abort the upload, no trace file is created;

FALSE if the caller wants to upload the recorded trace

Return values

ANALYZERCOMERROR_UNABLESTOPRECORDING

Error stopping recording

Remarks

Stops recording that was started by the

StartRecording

method. The event is issued when recording is

actually stopped (via the _IAnalizerEvents

interface) if the parameter of this method call was FALSE.

Example


VBScript:

RUNAT=Server
ID = Analyzer
CLASSID = "clsid: 297CD804-08F5-4A4F-B3BA-779B2654B27C "

>




C++:

IPEAnalyzer* pe_analyzer;

. . .

try
{

pe_analyzer->StopRecording( FALSE )

}
catch ( _com_error& er)
{

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

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

else

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

return 1;

}