Description of result properties, Base, Binpopulations – Teledyne LeCroy WaveExpert series Automation Manual User Manual
Page 42: Bins, Binwidth
A
BOUT
R
ESULTS
DESCRIPTION OF RESULT PROPERTIES
Base
Applies to: Histogram
Description: Horizontal coordinate of the leftmost of the two most populated histogram peaks. It is equivalent to
the paramater hbase.
Example:
Dim hbase as Double
hbase = app.Math.F1.Out.Result.Base
BinPopulations
Applies to: Histogram
Description: VARIANT array containing the populations of each bin. Bin 0 is the first bin. Index the array to retrieve
the number of counts in a given bin.
Example:
'Read out BinPopulations by indexing the array using the
'FirstPopulatedBin and LastPopulatedBin properties as boundaries
'Also shows code for determining coordinate of bin centers
Const STARTROW = 5
Dim i As Integer
Dim BinPops
Dim FirstPopulatedBin, LastPopulatedBin As Integer
Dim OffsetAtLeftEdge As Double
Dim BinWidth As Double
BinPops = app.Math.F1.Out.Result.BinPopulations
FirstPopulatedBin = app.Math.F1.Out.Result.FirstPopulatedBin
LastPopulatedBin = app.Math.F1.Out.Result.LastPopulatedBin
OffsetAtLeftEdge = app.Math.F1.Out.Result.OffsetAtLeftEdge
BinWidth = app.Math.F1.Out.Result.BinWidth
For i = FirstPopulatedBin To LastPopulatedBin
Cells(i - FirstPopulatedBin + STARTROW + 1, 7) = i
'Calculate Bin Center
Cells(i - FirstPopulatedBin + STARTROW + 1, 8) = OffsetAtLeftEdge +
(BinWidth / 2) + BinWidth * i
Cells(i - FirstPopulatedBin + STARTROW + 1, 9) = BinPops(i)
Next
Bins
Applies to: Histogram
Description: Number of bins in the histogram.
Example:
Dim Bins as Integer
Bins = app.Math.F1.Out.Result.Bins
BinWidth
Applies to: Histogram
Description: Width of each bin in the histogram.
Example:
Dim BinWidth as double
BinWidth = app.Math.F1.Out.Result.BinWidth
2-6
916435 RevA