Data Sheet

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
19
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:
<OBJECT
RUNAT=Server
ID = Analyzer
CLASSID = "clsid:0B179BB3-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++:
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;
}