4 ifcanalyzer::stoprecording – Teledyne LeCroy SierraFC Automation API User Manual
Page 14

LeCroy Corporation
SierraFC M8-4 API Reference Manual
Manual Version 1.00
14
3.1.4 IFCAnalyzer::StopRecording
HRESULT StopRecording (
[in] BOOL abort_upload );
Stops recording started by the
Parameters
abort_upload
TRUE, if the caller wants to abort the upload. No trace file is created.
FALSE, if the caller want to upload the recorded trace.
Return values
ANALYZERCOMERROR_UNABLESTOPRECORDING -
error stopping recording
Remarks
Stops recording started by the StartRecording method. The event is issued when
recording is actually stopped (by the
interface), if the parameter of method
call was FALSE.
Example (for SierraFC M8-4)
VBScript:
<OBJECT
RUNAT=Server
ID = Analyzer
CLASSID = "clsid: 0B179BB7-DC61-11d4-9B71-000102566088"
>
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub BtnStopRecording_OnClick
On Error Resume Next
Analyzer.StopRecording True
If Err.Number <> 0 Then
MsgBox Err.Number & ":" & Err.Description
End If
End Sub
-->
</SCRIPT>
C++:
IFCAnalyzer* sas_analyzer;
. . .
try
{
sas_analyzer->StopRecording( FALSE )
}
catch (_com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("SierraFC M8-4 client"), MB_OK
);
else
::MessageBox( NULL, er.ErrorMessage(), _T("SierraFC M8-4 client"), MB_OK
);
return 1;
}