User manual

Table Of Contents
MAUI Oscilloscopes Remote Control and Automation Manual
Base
Horizontal coordinate of the leftmost of the two most populated histogram peaks. It is equivalent to the
paramater hbase.
Applies to: Histogram
Dim hbase as Double
hbase = app.Math.F1.Out.Result.Base
BinPopulations
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.
Applies to: Histogram
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
Cells(i - FirstPopulatedBin + STARTROW + 1, 8) = OffsetAtLeftEdge +
(BinWidth / 2) + BinWidth * i
Cells(i - FirstPopulatedBin + STARTROW + 1, 9) = BinPops(i)
Next i
Bins
Number of bins in the histogram.
Applies to: Histogram
Dim Bins as Integer
Bins = app.Math.F1.Out.Result.Bins
4-4