beautypg.com

3 irecoptions::setrecmode, Irecoptions::setrecmode – Teledyne LeCroy USB Analyzer Automation Manual User Manual

Page 103

background image

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

103

7.1.3 IRecOptions::SetRecMode


HRESULT SetRecMode (

[in] ERecModes rec_mode );


Sets the recording mode.

Parameters


rec_mode

Enumerated value providing the mode to set;
ErecModes enumerator has the following values:

RMODE_SNAPSHOT

( 0 ) Snapshot recording mode

RMODE_MANUAL

( 1 ) Manual trigger

RMODE_USE_TRG

( 2 ) Event trigger

Return values

E_INVALIDARG

Invalid recording mode was specified.

Remarks

The default setting of recording options is the snapshot recording mode.

Example


WSH:

CurrentDir = Left(WScript.ScriptFullName, InstrRev(WScript.ScriptFullName, "\"))
Set Analyzer = WScript.CreateObject("CATC.USBTracer")
Set RecOptions = Analyzer.GetRecordingOptions
RecOptions.SetRecMode 2 ' Event trigger

C++: