
2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-33
bufferVar.timestamps
When enabled by the
bufferVar
.collecttimestamps
attribute, this attribute contains the timestamp when
each reading saved in the specified reading buffer occurred.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Clearing the buffer
See
Details
Not applicable
Usage
timestamp
=
bufferVar
.timestamps[
N
]
timestamp
The complete timestamp (including date, time, and fractional seconds) of reading
number
N
in the specified reading buffer when the reading was acquired
bufferVar
The reading buffer; can be a dynamically allocated user-defined buffer or a
dedicated reading buffer
N
The reading number (
1
to
bufferVar
.n
)
Details
The
bufferVar
.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 cannot
access any time information from a reading buffer.
If enabled, this buffer recall attribute is like an array (a Lua table) that contains timestamps, in
seconds, of when each reading occurred. These are relative to the
bufferVar
.basetimestamp
for
the buffer. See
(on page 3-10) for more information.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the
reading buffer is saved to nonvolatile memory.
Example
timestamp = smua.nvbuffer1.timestamps[1]
Get the timestamp of the first reading stored
in source-measure unit (SMU) A, buffer 1.
Also see
(on page 7-19)
(on page 7-21)
(on page 7-23)
(on page 7-24)
(on page 7-25)
(on page 7-26)
(on page 7-27)
(on page 7-29)
(on page 7-30)
(on page 7-31)