User manual

Table Of Contents
MAUI Oscilloscopes Remote Control and Automation Manual
NumFrameDimensions
Number of dimensions in the current result. For waveforms, this is typically = 2, (Voltage and time)
dimensions). For X-Y mode the result is 3.
Applies to: all Result Interfaces.
Dim NumFrameDimensions as Integer
NumFrameDimensions = app.Acquisition.C1.Out.Result.NumFrameDimensions
NumSamplesInFrame
Number of samples within the graticule.
Applies to: Waveform
Dim NumSamplesInFrame as Long
NumSamplesInFrame = app.Acquisition.C1.Out.Result.NumSamplesInFrame
OffsetAtLeftEdge
Horizontal coordinate of left edge of the first bin (either populated or unpopulated) displayed on the grid.
Use OffsetAtLeftEdge as an offset for calculating the position of each 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
' Calculate Bin Center:
Cells(i - FirstPopulatedBin + STARTROW + 1, 8) = OffsetAtLeftEdge +
(BinWidth / 2) + BinWidth * i
Cells(i - FirstPopulatedBin + STARTROW + 1, 9) = BinPops(i)
Next
4-18