beautypg.com

Overview – Teledyne LeCroy WaveExpert series Automation Manual User Manual

Page 27

background image

C

HAPTER

O

NE

Overview

' Transfer the 8 parameter values into the spreadsheet

'Note: the number of configurable measurements your scope may be different

Cells(1, 3).Value = app.Measure.P1.Out.Result.Value

Cells(2, 3).Value = app.Measure.P2.Out.Result.Value

Cells(3, 3).Value = app.Measure.P3.Out.Result.Value

Cells(4, 3).Value = app.Measure.P4.Out.Result.Value

Cells(5, 3).Value = app.Measure.P5.Out.Result.Value

Cells(6, 3).Value = app.Measure.P6.Out.Result.Value

Cells(7, 3).Value = app.Measure.P7.Out.Result.Value

Cells(8, 3).Value = app.Measure.P8.Out.Result.Value

Set

app =

Nothing

End

Sub

Statistics are also available for each parameter using two different kinds of calls:

result = app.Measure.P1.mean.Result.Value

result = app.Measure.P1.max.Result.Value

result = app.Measure.P1.min.Result.Value

result = app.Measure.P1.num.Result.Value

result = app.Measure.P1.sdev.Result.Value

result = app.Measure.P1.Statistics("mean").Result.Value

result = app.Measure.P1.Statistics("max").Result.Value

result = app.Measure.P1.Statistics("min").Result.Value

result = app.Measure.P1.Statistics("num").Result.Value

result = app.Measure.P1.Statistics("sdev").Result.Value


In addition, the data used to display the Histicon is available using the “histo” statistic:

Sub

Button1_Click()

Set

app = CreateObject("LeCroy.XStreamDSO")

bins = app.Measure.P5.Statistics("histo").Result.BinPopulations

numBins = app.Measure.P5.Statistics("histo").Result.bins

For

i = 0

To

numBins - 1

Cells(i + 1, 4).Value = bins(i)

Next

I

Set

App =

Nothing

End

Sub

916435 RevA

1-15