User manual

Section 7: Buffer: Data Storage and Retrieval Series 3700 System Switch/Multimeter Reference Manual
7-14 3700S-901-01 Rev. C / July 2008
Command
Description
readingbuffer.collectchannels = 1
Enable channel storage.
readingbuffer.appendmode = 1
Enable the buffer append mode.
readingbuffer.collecttimestamps = 0
Disable time stamp 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.
Buffer reading attributes
The table in Buffer recall attributes (on page 7-14) lists the attributes that control
which elements are recalled from the buffer. To access specific elements,
append the desired attribute to the buffer designation.
For example, the following command line returns 100 readings from
readingbuffer1:
printbuffer(1, 100, readingbuffer1.readings)
Similarly, the following command line returns 100 channel values from
readingbuffer1:
printbuffer(1, 100, readingbuffer1.channels)
The default reading buffer recall attribute is readings, which can be omitted.
Thus, the following command line also returns 100 readings from
readingbuffer1:
printbuffer(1, 100, readingbuffer1)
Buffer recall attributes
The following table lists the attributes that control which elements are recalled
from the buffer. Each is actually a nested table. Related entries are stored at the
same index as the relevant measurement.
NOTE The default attribute is readings and can be omitted. For example,
readingbuffer1 and readingbuffer1.readings will both
return readings from the buffer named readingbuffer1.