Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-35
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.times[1])
printbuffer(1, 6, testData.times)
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
time of the first reading in the reading buffer.
Output:
09:14:48
The
printbuffer()
command then
outputs the time of readings 1 to 6 in the
reading buffer.
Output:
09:14:48, 09:14:48, 09:14:48,
09:14:48, 09:14:48, 09:14:48
Also see
(on page 11-21)
(on page 11-24)
bufferVar.timestampresolution
This attribute contains the resolution of the timestamp.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Buffer storage settings
Clearing the buffer
Reset
Recall setup
Not saved
Not applicable
Usage
resolution
=
bufferVar
.timestampresolution
resolution
Timestamp resolution in seconds
bufferVar
The reading buffer
Details
Reading this attribute returns the timestamp resolution value.
The finest timestamp resolution is 0.000001 se
conds (1 μs). At this resolution, the reading buffer can
store unique timestamps for up to 71 minutes. This value can be increased for very long tests.
The value specified when setting this attribute will be rounded to an even power of 2 μs.
Example
buffer1.timestampresolution = 0.000008
Sets the timestamp resolution of
reading buffer 1 to 8 μs.
Also see
(on page 11-21)
(on page 11-24)