Mean, Median – Teledyne LeCroy WaveRunner Automation Command User Manual
Page 420
Automation Command and Query Reference Manual - Processor Reference
' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")
app.Measure.P1.ParamEngine = "Maximum"
Example
MEAN
app.Measure.Px.Operator (ParamEngine = "Mean")
Calculates the mean value of the input waveform's vertical values. When Cyclic = true, the range of values used is
limited to a whole number of cycles.
' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")
' Set parameter P1 to mean.
app.Measure.P1.ParamEngine = "Mean"
' Set the mean parameter for cyclic measurements.
app.Measure.P1.Operator.Cyclic = true
Example
Cyclic
Bool
Sets/Queries whether the mean parameter Px is to be measured over a number of complete cycles.
Description
' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")
' Set parameter P2 to mean.
app.Measure.P2.ParamEngine = "Mean"
' Set the mean parameter for cyclic measurements.
app.Measure.P2.ParamEngine.Cyclic = True
Example
Cyclic
Bool
MEDIAN
app.Measure.Px.Operator (ParamEngine = "Median")
Calculates the median (division between two halves) of the probability distribution of an input waveform. For periodic
signals it is advisable to use Cyclic = true.
' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")
app.Measure.P1.ParamEngine = "Median"
' Set the measurement for a periodic signal
app.Measure.P1.Operator.Cyclic = true
Example
Cyclic
Bool
Sets/Queries whether the median parameter Px is to be measured over a number of complete cycles.
Description
Cyclic
Bool
2-89
918500 RevA