Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-31
bufferVar.relativetimestamps
This attribute contains the timestamps, in seconds, when each reading occurred, relative to the timestamp of the
first entry in the reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Buffer storage settings
Clearing the buffer
Reset
Recall setup
USB flash drive using
dmm.savebuffer or
dmm.appendbuffer
1
Usage
timestamp
=
bufferVar
.relativetimestamps[
N
]
timestamp
The timestamp, in seconds
bufferVar
The reading buffer
N
The reading number (
1
to
bufferVar
.n
)
Details
The relative timestamps information from a reading buffer is only available if the
bufferVar
.collecttimestamps
attribute is set to 1 (default setting). If it is set to 0, you will not
be able to access any time information from a reading buffer. You may change the collect timestamps
setting when the buffer is empty (
bufferVar
.clear()
).
This read-only attribute is an array of timestamps, in seconds, of when each reading occurred relative
to the timestamp of the first entry in the reading buffer. These timestamps are equal to the time that
has lapsed for each reading since the first reading was stored in the buffer. Therefore, the relative
timestamp for the first entry number in the reading buffer equals 0.
Example
reset()
testData = dmm.makebuffer(1000)
testData.collecttimestamps = 1
dmm.nplc = 0.5
dmm.range = 0
dmm.configure.set("Dcv_100mV")
dmm.setconfig("slot2", "Dcv_100mV")
scan.create("2035:2040")
scan.execute(testData)
print(testData.relativetimestamps[1])
printbuffer(1, 6, testData.relativetimestamps)
This example creates a reading buffer
named
testData
, configures the buffer to
collect time and date data, sets and saves
the DMM configuration, creates a scan list,
and then runs the scan.
The
print()
command then outputs the
relative timestamp of the first measurement
in the reading buffer.
Output:
0.00000
The
printbuffer()
command then
outputs the relative timestamp for
measurements 1 to 6 in the reading buffer.
Output:
0.00000, 1.894584000e-02,
3.789703500e-02,
5.685028500e-02,
7.580344500e-02,
1.715638050e-01
Also see
(on page 11-21)
(on page 11-24)