6 isasanalyzer::stoprecording – Teledyne LeCroy SAS_SATA Tracer_Trainer Automation API Manual User Manual
Page 18
![background image](/manuals/353616/18/background.png)
LeCroy Corporation
Automation API for SAS/SATATracer/Trainer
Manual Version 1.11
18
3.1.6 ISASAnalyzer::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 SASTracer)
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++:
ISASAnalyzer* sas_analyzer;
. . .
try
{
sas_analyzer->StopRecording( FALSE )
}
catch (_com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("SASTracer client"), MB_OK );
else
::MessageBox( NULL, er.ErrorMessage(), _T("SASTracer client"), MB_OK );
return 1;
}