Series 3700A System Switch/Multimeter Reference Manual
Section 6: Reading buffers
3700AS-901-01 Rev. D/June 2018
6-9
Buffer read-only attributes
Use buffer read-only attributes to access the information contained in an existing buffer. The following
attributes are available per reading buffer (for example,
rb.basetimeseconds
would access
basetimeseconds
for reading buffer
rb
, and the number of readings the reading buffer can store is
accessed as
rb.capacity
).
Attribute
Description
basetimefractional
The fractional portion of the timestamp of when the reading at
rb[1]
was
stored in the reading buffer (in seconds).
basetimeseconds
The seconds portion of the timestamp, in whole seconds, when the reading at
rb[1]
was stored in the buffer.
capacity
The total number of readings that can be stored in the reading buffer.
timestampresolution
The timestamp resolution, in seconds. The resolution is fixed at 1e-9 seconds.
Buffer programming examples
Refer to the following for buffer control programming examples. In the example, the buffer is named
readingbuffer
.
You must clear the buffer using the
readingbuffer.clear()
command before changing buffer
control attributes.
Command
Description
readingbuffer.collectchannels = 1
Enable channel storage.
readingbuffer.appendmode = 1
Enable the buffer append mode.
readingbuffer.collecttimestamps = 0
Disable timestamp storage.
Refer to the following for buffer read-only attribute programming examples. In the example, the buffer
is named
readingbuffer
.
Command
Description
number = readingbuffer.n
Request number of readings stored in the
buffer.
buffer_size = readingbuffer.capacity
Request the buffer storage capacity.