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

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:
<OBJECT
RUNAT=Server
ID = Analyzer
CLASSID = "clsid:EE43DE29-65CA-4904-B111-32919E00D061"
>
</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++:
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;
}