User manual

Table Of Contents
MAUI Oscilloscopes Remote Control and Automation Manual
FirstEventTime
Absolute trigger time of the acquisition, or the time of the first trigger in an acquisition that utilizes multiple
sweeps. Examples of multi-sweep acquisitions are Sequence Mode and when a source channel is
configured for pre-processor averaging. Times are returned encoded as a currency value (VT_CY) within a
variant, which allows the use of the full 64-bit resolution of the timestamp value. Values are referenced to
1st Jan 2000, with 1ns resolution. Note that VT_CY values are stored as 64-bit (8 byte) two's complement
integers, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point, and 4
digits after. See the example for details on decoding FirstEventTime as well as other properties that return
times, such as LastEventTime and UpdateTime.
Applies to: all Result Interfaces
Dim FirstEventTime
Dim TimeString as String
FirstEventTime = app.Acquisition.C1.Out.Result.FirstEventTime
timeString = DecodeTimeProperty(FirstEventTime)
' Decode the FirstEventTime, LastEventTime and UpdateTime properties.
Function DecodeTimeProperty(ByVal EventTime) As String
Dim days, thedate, hours, thehour, minutes, theminute, seconds
Dim outstring As String
days = EventTime / (86400 * 100000#)
thedate = DateAdd("d", days, "1-Jan-00")
hours = (days - Int(days)) * 24
thehour = Int(hours)
minutes = (hours - thehour) * 60
theminute = Int(minutes)
seconds = (minutes - theminute) * 60
' Format output string:
DecodeTimeProperty = thedate & " " & thehour & ":" & theminute & ":" &seconds
End Function
FirstPopulatedBin
Index of the first populated bin. (The first bin of the histogram is bin 0).
Applies to: Histogram
Dim FirstPopulatedBin as Integer
FirstPopulatedBin = app.Math.F1.Out.Result.FirstPopulatedBin
4-12