Data Sheet

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
34
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:
<OBJECT
RUNAT=Server
ID = Analyzer
CLASSID = "clsid:136D64A4-3CD5-4b41-974A-C7039E3FC292"
>
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub BtnPauseUsb3Generation_OnClick
On Error Resume Next
Analyzer.PauseUsb3Generation
If Err.Number <> 0 Then
MsgBox Err.Number & ":" & Err.Description
End If
End Sub
-->
</SCRIPT>