5 ianalyzer::startrecording, Parameters, Return values – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 15: Remarks, Example, Sub btnstartrecording_onclick, Ianalyzer::startrecording

Advertising
background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

10

3.1.5 IAnalyzer::StartRecording


HRESULT StartRecording (

[in] BSTR ro_file_name )

Starts recording with the specified recording options.

Parameters

ro_file_name

String providing the full pathname to the recording options file; if the

parameter is omitted, then recording starts with default recording
options

Return values

ANALYZERCOMERROR_UNABLESTARTRECORDING

Unable to start recording

Remarks

After recording starts, this function returns. The analyzer continues recording until it is finished or until

the StopRecording method call is performed. During the recording, the events are sent to event sink (see the

_IAnalyzerEvents

interface, Page 119).

The recording options file is the file with extension .rec created by the PETracer application. You can

create this file when you select “Setup -> Recording Options…” from the PETracer application menu, change
the settings in the “Recording Options” dialog box, and then select the “Save…” button.

Example


VBScript:

<OBJECT

RUNAT=Server
ID = Analyzer
CLASSID = "clsid: 297CD804-08F5-4A4F-B3BA-779B2654B27C "

>
</OBJECT>

<INPUT TYPE=TEXT VALUE="" NAME="TextRecOptions">

<SCRIPT LANGUAGE="VBScript">
<!--
Sub BtnStartRecording_OnClick

On Error Resume Next

Analyzer.StartRecording TextRecOptions.value

If Err.Number <> 0 Then

MsgBox Err.Number & ":" & Err.Description

End If

End Sub
-->
</SCRIPT>


Advertising