beautypg.com

Maxpopulation, Maxpopulationbin, Maxpopulationinrectangle – Teledyne LeCroy WaveExpert series Automation Manual User Manual

Page 53: Overview

background image

C

HAPTER

T

WO

Overview

MaxPopulation

Applies to: Histogram
Description: Mode of the histogram (population of the bin with the most hits).

Example:

Dim MaxPopulation as Long
MaxPopulation = app.Math.F1.Out.Result.MaxPopulation

MaxPopulationBin

Applies to: Histogram
Description: Index of the bin with the highest population. (The first bin of the histogram is bin 0).

Example:

Dim MaxPopulationBin as Integer
MaxPopulationBin = app.Math.F1.Out.Result.MaxPopulationBin

MaxPopulationInRectangle

Applies to: Persist
Description: Population of the largest element in the selected rectangle.
Arguments:

numColumns as Long

Default value: -1, use all columns
Number of columns to use in maximum population search.

numRows as Long

Default value: -1, use all rows
Number of rows to retrieve.

startColumn as Long

Default value: 0, first column
Index of the first column to use. (0-based)

startRow as Long

Default value: 0, first row
Index of the first row to use. (0-based)

Example:

‘Example for 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, st artColumn, startRow)

‘Use no arguments to select the full rectangle:
'MaxPopulationInRectangle = app.SDA.Eye.Out.Result.MaxPopulationInRectangle

916435 RevA

2-17