Buffervar.fractionalseconds - 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.fractionalseconds

This attribute contains the fractional second portion of the timestamp of each reading in the reading buffer.
Type
TSP-Link accessible
Attribute (R)
Yes
Usage
fractionalseconds = bufferVar.fractionalseconds[N]
fractionalseconds
bufferVar
N
Details
The bufferVar.fractionalseconds 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 will not
be able to 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 the fractional portion of the timestamps, in
seconds, of when each reading occurred. These are absolute fractional times.
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.fractionalseconds[1])
printbuffer(1, 6, testData.fractionalseconds)
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 fractional portion of the timestamp (in seconds) when each reading occurred
The reading buffer
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
(on page 11-21)
(on page 11-24)
(on page 6-7, on page 6-1)
Section 11: TSP command reference
Where saved
USB flash drive using
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 outputs the
fractional portion of the timestamp for the
first measurement in the buffer.
Output:
5.097621610e-01
The printbuffer() command then
outputs the fractional portion of the
timestamp for the first six measurements in
the buffer.
Output:
5.097621610e-01, 5.287080010e-01,
5.476591960e-01, 5.666124460e-01,
5.855656060e-01, 6.813259660e-01
Default value
Not applicable
11-27

Advertisement

Table of Contents
loading

Table of Contents