470 High Voltage SourceMeter Instrument Reference Manual Section 14:
2470-901-01 Rev. A / May 2019 14-29
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 Restore configuration
Instrument reset
Not applicable Not applicable
Usage
timestamp = bufferVar.relativetimestamps[N]
The timestamp, in seconds
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2
) or a user-defined buffer
N
; can be any value from 1 to the number of readings in the
buffer; use the bufferVar.n command to determine the number of readings in the
Details
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
testData = buffer.make(50)
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
print(testData.relativetimestamps[1])
printbuffer(1, 3, testData.relativetimestamps)
Create a reading buffer named testData,
configure the instrument to make three
measurements, and store the readings in the
buffer.
Print the relative timestamp for the first
reading in the buffer.
Example output:
0
Print the relative timestamp for the reading 1
through 3 in the buffer.
Example output:
Also see
buffer.delete() (on page 14-9)
buffer.make() (on page 14-12)
bufferVar.clear() (on page 14-18)
print() (on page 14-99)
printbuffer() (on page 14-100)
Reading buffers (on page 6-1)
Remote buffer operation (on page 6-25)