beautypg.com

16 iusbanalyzer::pauseusb3generation, Iusbanalyzer::pauseusb3generation – Teledyne LeCroy USB Analyzer Automation Manual User Manual

Page 32

background image

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite

32

2.1.16 IUsbAnalyzer::PauseUsb3Generation


HRESULT PauseUsb3Generation ();

Pauses the currently running USB 3.0 generation.

Parameters

Return values

ANALYZERCOMERROR_ANALYZERNOTCONNECTED

Analyzer is not connected


ANALYZERCOMERROR_WRONGCALL

Analyzer is not running

Remarks

Pauses the generation started by the StartUsb3Generation 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 (.usb3g) file, some Send Packet instructions might be queued in
an output FIFO, and then pausing only takes effect after this buffer empties.

Example


WSH:

Set

Analyzer = WScript.CreateObject("CATC.UsbTracer", "Analyzer_")

' Tell the CATC USB analyzer to start generation.

Analyzer.StartUsb3Generation "some_example.usb3g"
WScript.Sleep 3000

' Tell the analyzer to stop recording.

Analyzer.PauseUsb3Generation


VBScript:

RUNAT=Server
ID = Analyzer
CLASSID = "clsid:136D64A4-3CD5-4b41-974A-C7039E3FC292"

>