User manual

Table Of Contents
Part 4: Automation Result Interface Reference
Peaks
Number of peaks in the histogram.
Applies to: Histogram
Dim NumPeaks as Integer
NumPeaks = app.Math.F1.Out.Result.Peaks
PeakInfo
Variant array returning information about the peak selected in the input argument. Sending 0 returns
information for the entire histogram; input values from 1 to Peaks+1 returns information about the
requested peak.
Applies to: Histogram
Arguments (optional)
peakIndex Long 0 = mean
1 = sigma
2 = unused
3 = unused
4 = FirstPopulatedBin
5 = LastPopulatedBin
6 = MaxPopulationBin
7 = MaxPopulation
8 = PopulationInside
Selects the peak of interest. 0 requests information about
the entire histogram; > 0 requests information about a single
peak. Default is 0.
Example
' Read out complete PeakInfo arrays for each peak.
Const STARTROW = 10
Const STARTCOL = 13
Dim PeakInfo
Dim i, j As Integer
Dim NumPeaks as Integer
NumPeaks = app.Math.F1.Out.Result.Peaks
For i = 0 To NumPeaks
' Index out a peak (index 0 is the entire histogram):
PeakInfo = app.Math.F1.Out.Result.PeakInfo(i)
Cells(STARTROW, STARTCOL + i) = i
' Loop through each element of the selected PeakInfo array (there are nine
elements):
For j = 0 To 8
Cells(STARTROW + j + 1, STARTCOL + i) = PeakInfo(j)
Next
Next
4-19