Teledyne-lecroy SAS_SATA Tracer_Trainer Automation API Manual Manual de usuario Pagina 18

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 94
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 17
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 ISASAnalyzer::StartRecording
method.
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 ISASAnalyzer
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;
}
Vista de pagina 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 93 94

Comentarios a estos manuales

Sin comentarios