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

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:
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;
}