2 irecoptions::save, Saves the whole recording options (.rec), Parameters – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual
Page 60: Return values, Remarks, Example, Irecoptions::save

Teledyne LeCroy
Automation API for PETracer/PETrainer
55
5.1.2 IRecOptions::Save
 
HRESULT Save ( 
[in] BSTR ro_file_name ) 
 
 
Saves recording options into the specified file. The Save options are: 
 
• Saves the whole Recording Options (.rec) 
• Saves only the Recording Rules portions of the recording options (.rr) 
• Saves 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 
 
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\rec_options.rec" ) 
 
C++:
