Buffervar.dates - Keithley 3700A Series Reference Manual

System switch/multimeter
Hide thumbs Also See for 3700A Series:
Table of Contents

Advertisement

Series 3700A System Switch/Multimeter Reference Manual

bufferVar.dates

When enabled by the bufferVar.collecttimestamps attribute, this attribute contains the dates (month, day,
and year) of readings stored in the reading buffer.
Type
TSP-Link accessible
Attribute (R)
Yes
Usage
dates = bufferVar.dates[N]
bufferVar
N
Details
The bufferVar.dates 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. You may change the collect timestamps setting
when the buffer is empty (bufferVar.clear()).
This read-only attribute is an array (a Lua table) of strings indicating the date of the reading, formatted
in month, day, and year format.
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.dates[1])
printbuffer(1, 6, testData.dates)
Also see
bufferVar.clear()
bufferVar.collecttimestamps
Reading buffers
3700AS-901-01 Rev. D/June 2018
Affected by
Buffer storage settings
Clearing the buffer
Instrument reset
Recall setup
The reading buffer
The reading number (1 to bufferVar.n)
(on page 11-21)
(on page 11-24)
(on page 6-7, on page 6-1)
Section 11: TSP command reference
Where saved
Default value
USB flash drive using
Not applicable
dmm.savebuffer or
dmm.appendbuffer
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 first
measurement date.
Output:
07/11/2011
The printbuffer() command then outputs
the dates for measurements 1 to 6 in the
reading buffer.
Output:
07/11/2011, 07/11/2011,
07/11/2011, 07/11/2011,
07/11/2011, 07/11/2011
11-25

Advertisement

Table of Contents
loading

Table of Contents