beautypg.com

10_xstreamautomation_ch4_processorreference, Chapter four, Average – Teledyne LeCroy WaveExpert series Automation Manual User Manual

Page 205

background image

Chapter Four

Control Reference

AVERAGE

app.Math.Fx.OperatorYSetup (Operator = "Average")

Waveform Averaging.

' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")

' Turn trace F1 on and setup to average the data from C1
' Average mode is set to Continuous
app.Math.F1.View = True
app.Math.F1.Operator1 = "Average"
app.Math.F1.MathMode = "OneOpe

Example

Sets / Queries the averaging mode. Continuous and Summation modes are supported.

AverageType

Enum

Description

Values

Continuous

Summed

Sets / Queries the number of sweeps to be averaged when trace Fx is set to averaging - continuous or
summed.

Sweeps

From 1 to 1000000 step 1

Integer

' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")

' Set number of sweeps to be averaged in trace F1 as 20.
app.Math.F1.Operator1Setup.Sweeps = 20

Range

Example

Description

AverageType

Enum

ClearSweeps

Action

Sweeps

Integer

4-1

916435 RevA