beautypg.com

8 irecoptions::settracefilename, Parameters, Return values – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 66: Remarks, Example, Irecoptions::settracefilename

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

61

5.1.8 IRecOptions::SetTraceFileName


HRESULT SetTraceFileName (

[in] BSTR file_name )


Sets the file path to where the trace is stored after recording.

Parameters

file_name

String that provides the full file pathname to where the recording is

stored

Return values


Remarks

If the specified file does not exist, it is created; if it exists, it is overwritten.

Example


WSH:

CurrentDir = Left( WScript.ScriptFullName, InstrRev( WScript.ScriptFullName, “\” ) )
Set Analyzer = WScript.CreateObject( “CATC.PETracer” )
Set RecOptions = Analyzer.GetRecordingOptions( )
' do the changes of recording options here
RecOptions.Save( CurrentDir & "Input\trace.pex" )

C++: