User manual

Table Of Contents
Part 4: Automation Result Interface Reference
MaxPopulationInRectangle
Population of the largest element in the selected rectangle.
Applies to: Persist
Arguments
numColumns Long -1 = use all columns
Number of columns to use. Default is -1.
numRows Long -1 = use all rows Number of rows to use. Default is -1.
startColumn Long 0 = first sample Index of the first column. Default is 0.
startRow Long 0 = first row
Index of the first row. Default is 0.
Example
Determining the maximum population in the rectangle.
Dim numColumns As Long
Dim numRows As Long
Dim startColumn As Long
Dim startRow As Long
Dim MaxPopulationInRectangle As Long
numColumns = Cells(9, 5)
numRows = Cells(10, 5)
startColumn = Cells(11, 5)
startRow = Cells(12, 5)
MaxPopulationInRectangle =
app.SDA.Eye.Out.Result.MaxPopulationInRectangle
(numColumns,numRows,startColumn,startRow)
Use no arguments to select the full rectangle:
MaxPopulationInRectangle = app.SDA.Eye.Out.Result.MaxPopulationInRectangle
Mean
Returns the mean value of the histogam. It is equivalent to the hmean parameter.
Applies to: Histogram
Dim hmean as double
hmean = app.Math.F1.Out.Result.Mean
Min
Horizontal coordinate of the left edge of the first populated bin. It is equivalent to the hmin parameter.
Applies to: Histogram
Dim hmin as double
hmin = app.Math.F1.Out.Result.Min
4-17