Firstpopulatedbin, Horizontalframestart, Horizontalframestop – Teledyne LeCroy WaveExpert series Automation Manual User Manual
Page 49: Horizontaloffset, Overview
![background image](/manuals/353447/49/background.png)
C
HAPTER
T
WO
Overview
End Function
FirstPopulatedBin
Applies to: Histogram
Description: Index of the first populated bin. (The first bin of the histogram is bin 0).
Example:
Dim FirstPopulatedBin as Integer
FirstPopulatedBin = app.Math.F1.Out.Result.FirstPopulatedBin
HorizontalFrameStart
Applies to: Digital, Histogram, Persist, Waveform, XY
Description: Coordinate of the left edge of the graticule containing the trace relative to the trigger time, which is at
time = 0.
Example:
Dim XFrameStart As Double
X FrameStart = app.Acquisition.C1.Out.Result.HorizontalFrameStart
HorizontalFrameStop
Applies to: Digital, Histogram, Persist, Waveform, XY
Description: Coordinate of the right edge of the graticule containing the trace relative to the trigger time, which is
at time = 0.
Example:
Dim XFrameStop As Double
XFrameStop = app.Acquisition.C1.Out.Result.HorizontalFrameStop
HorizontalOffset
Applies to: Digital, Histogram, Persist, Waveform, XY
Description: Time of the first sample. Note that the first sample is typically just off screen, to the left of the grid.
Use this value when calculating the time for each sample.
Example:
‘Waveform Interface example:
Dim HorizontalOffset As Double
HorizontalOffset = app.Acquisition.C1.Out.Result.HorizontalOffset
Dim HorizontalPerStep As Double
HorizontalPerStep = app.Acquisition.C1.Out.Result.HorizontalPerStep
‘Example of calculating sample times:
Dim SampleTime as Double
Dim i as Long
For i = 0 to numPoints-1
SampleTime = HorizontalPerStep * i + HorizontalOffset
Next
For a more complete example, see the example under Waveform in DataArray as well as the function
GetDataArray_Click
916435 RevA
2-13