![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750345.webp)
Section 7: TSP command reference
Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-32
2657A-901-01 Rev. B/December 2012
Details
Assigning a value to this attribute sets the resolution for the timestamps. Reading this attribute returns the
timestamp resolution value. This value can only be changed with an empty buffer. Empty the buffer using the
bufferVar
.clear()
function.
The finest timestamp resolution is 0.000001 seconds (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.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the reading buffer
is saved to nonvolatile memory.
Example
smua.nvbuffer1.timestampresolution = 0.000008
Sets the timestamp resolution of
dedicated reading buffer 1 to 8
μ
s.
Also see
(on page 7-19)
(on page 7-21)
(on page 7-32)
(on page 3-6)
(on page 7-204)
(on page 7-238)
bufferVar.timestamps
When enabled by the
bufferVar
.collecttimestamps
attribute, this attribute contains the timestamp (in
seconds) of when each reading saved in the specified reading buffer occurred.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Clearing the buffer
See
Details
Not
applicable
Usage
timestamp
=
bufferVar
.timestamps[
N
]
timestamp
The timestamp of reading number
N
in the specified buffer when the reading was
acquired
bufferVar
The reading buffer; can be a dynamically allocated user-defined buffer or a
dedicated reading buffer
N
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. See
(on page 3-11) for more information.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the reading buffer
is saved to nonvolatile memory.
Содержание 2657A
Страница 3: ......