Section 11: TSP command reference Series 3700A System Switch/Multimeter Reference Manual
11-36 3700AS-901-01 Rev. D/June 2018
bufferVar.timestamps
When enabled by the bufferVar.collecttimestamps attribute, this attribute contains the timestamp when
each reading saved in the specified reading buffer occurred.
Buffer storage settings
Clearing the buffer
Instrument reset
Recall setup
USB flash drive using
dmm.savebuffer or
dmm.appendbuffer
Usage
timestamp = bufferVar.timestamps[N]
The complete timestamp (including date, time, and fractional seconds) of reading
number N in the specified reading buffer when the reading was acquired
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.
Example
printbuffer(1, 6, buffer1.timestamps)
Print the timestamp of the first 6 readings
stored in buffer 1.
Example output:
07/11/2011 09:14:48.509762161,
07/11/2011 09:14:48.528708001,
07/11/2011 09:14:48.547659196,
07/11/2011 09:14:48.566612446,
07/11/2011 09:14:48.585565606,
07/11/2011 09:14:48.681325966
Also see
bufferVar.clear() (on page 11-21)
bufferVar.collecttimestamps (on page 11-24)
bufferVar.n (on page 11-28)
bufferVar.readings (on page 11-29)
bufferVar.statuses (on page 11-33)
Reading buffers (on page 6-7, on page 6-1)