2 iuwbanalyzer2::stopgeneration, Iuwbanalyzer2::stopgeneration – Teledyne LeCroy UWBTracer Automation Manual User Manual
Page 26

LeCroy
UWBTracer Automation API Reference Manual
Manual Version 3.02
22
3.2.2 IUwbAnalyzer2::StopGeneration
HRESULT StopGeneration ();
Stops generation started by the StartGeneration method.
Parameters
None
Return values
ANALYZERCOMERROR_ANALYZERNOTCONNECTED
Analyzer is not connected
ANALYZERCOMERROR_WRONGCALL
Analyzer is not running
Remarks
Stops the generation started by the StartGeneration method. The generation stops if the analyzer is
either running or paused, and the analyzer then returns to the idle state.
Example
Wsh:
Set
Analyzer = WScript.CreateObject("CATC.UWBAnalyzer", "Analyzer_")
'Tell the CATC UWB analyzer to start generation.
Analyzer.StartGeneration "example.uwbg"
WScript.Sleep 3000
'Tell the analyzer to stop recording.
Analyzer.StopGeneration()
VBScript:
<OBJECT
RUNAT=Server
ID = Analyzer
CLASSID = "clsid:EE43DE29-65CA-4904-B111-32919E00D061"
>
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub BtnStopGeneration_OnClick
On Error Resume Next
Analyzer.StopGeneration
If Err.Number <> 0 Then
MsgBox Err.Number & ":" & Err.Description
End
If
End Sub
-->
</SCRIPT>