beautypg.com

1 irecoptions interface, 1 irecoptions::load, Loads the whole recording options (.rec) – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 59: Parameters, Return values, Remarks, Example, Irecoptions interface, Irecoptions::load

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

54

5.1 IRecOptions interface


The IRecOptions

interface is a dual interface for

PERecOptions object.


IRecOptions implements the following methods:

Load

Save

SetRecMode

SetBufferSize

SetPostTriggerPercentage

SetTriggerBeep

SetSaveExternalSignals

SetTraceFileName

Reset


Note: All methods of the IRecOptions interface are also available in the IPERecOptions (see Page 57) and the
IPERecOptions2 (see Page 57) interfaces.

5.1.1 IRecOptions::Load


HRESULT Load (

[in] BSTR ro_file_name )


Loads recording options from the specified file. The load options are:

• Loads the whole Recording Options (.rec)

• Loads only the Recording Rules portions of the recording options (.rr)
• Loads only the Probe Settings portions of the recording options (.ps). This option only applies to the

Summit T3-16, T3-8, T28 and T24 Protocol Analyzers.


Parameters

ro_file_name

String that provides the full pathname to the recording options file

Return values

ANALYZERCOMERROR_UNABLEOPENFILE

Unable to open file

Remarks


Example


WSH:

CurrentDir = Left( WScript.ScriptFullName, InstrRev( WScript.ScriptFullName, “\” ) )
Set Analyzer = WScript.CreateObject( “CATC.PETracer” )
Set RecOptions = Analyzer.GetRecordingOptions( )
RecOptions.Load( CurrentDir & "Input\rec_options.rec" )

C++: