3 irecoptions::setrecmode, Irecoptions::setrecmode – Teledyne LeCroy FireInspector Automation Application Programming Interface User Manual
Page 56

52
FireInspector Automation User’s Manual
CATC
Version 1.0
2.5.3
IRecOptions::SetRecMode
Sets the recording mode.
Syntax
HRESULT SetRecMode (
[in] ERecModes rec_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 a snapshot recording mode.
Example
WSH:
CurrentDir = Left(WScript.ScriptFullName,
InstrRev(WScript.ScriptFullName, "\"))
Set Analyzer = WScript.CreateObject("CATC.FwAnalyzer")
Set RecOptions = Analyzer.GetRecordingOptions
RecOptions.SetRecMode 2' Event trigger
C++: