beautypg.com

3 iuwbanalyzer2::pausegeneration, Iuwbanalyzer2::pausegeneration – Teledyne LeCroy UWBTracer Automation Manual User Manual

Page 28

background image

LeCroy

UWBTracer Automation API Reference Manual

Manual Version 3.02

24

3.2.3 IUwbAnalyzer2::PauseGeneration


HRESULT PauseGeneration ();

Pauses the currently running generation.

Parameters


None

Return values

ANALYZERCOMERROR_ANALYZERNOTCONNECTED

Analyzer is not connected


ANALYZERCOMERROR_WRONGCALL

Analyzer is not running

Remarks

Pauses the generation started by the StartGeneration method. Generation pauses if the Exerciser is
running. However, the pause command cannot immediately pause traffic generation in all cases. During
execution of a generation script (.uwbg) file, any Send Frame instructions that are not marked as
“Blocking” are queued in an output FIFO, and pausing only takes effect after this buffer empties. If you
use the “Blocking” type of Send Frame, delay due to FIFO emptying does not occur.

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.PauseGeneration()

VBScript:

RUNAT=Server
ID = Analyzer
CLASSID = "clsid:EE43DE29-65CA-4904-B111-32919E00D061"

>