Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-34
3700AS-901-01 Rev. D/June 2018
Example
reset()
testData = dmm.makebuffer(1000)
testData.collectchannels = 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.statuses[1])
printbuffer(1, 6, testData.statuses)
This example creates a reading buffer named
testData
, configures the buffer to collect
channel data, sets and saves the DMM
configuration, creates a scan list, and then
runs the scan.
The
print()
command then outputs the
status value of the first measurement channel
in the reading buffer.
Output:
0.00000
The
printbuffer()
command then outputs
the status values for measurements 1 to 6 in
the reading buffer.
Output:
0.00000, 0.00000,
0.00000, 0.00000,
0.00000, 0.00000
Also see
bufferVar.times
When enabled by the
bufferVar
.collecttimestamps
attribute, this attribute contains the time of the
readings (in hours, minutes, and seconds format) in the reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Buffer storage settings
Clearing the buffer
Instrument reset
Recall setup
USB flash drive using
dmm.savebuffer or
dmm.appendbuffer
Not applicable
Usage
readingtime
=
bufferVar
.times[
N
]
readingtime
The time of the reading in hours, minutes, and seconds
bufferVar
The reading buffer
N
The reading number
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
buffer
Details
The times 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 time of the reading formatted
in hours, minutes, and seconds.
These seconds are absolute and in UTC format.