Section 6: Reading buffers Series 3700A System Switch/Multimeter Reference Manual
6-10 3700AS-901-01 Rev. D/June 2018
Buffer reading attributes
The table in Buffer recall attributes (on page 6-10) lists the attributes that control which elements are
recalled from the buffer. To access specific elements, append the 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.
The default attribute is readings and can be omitted. For example, readingbuffer1 and
readingbuffer1.readings will both return readings from the buffer named readingbuffer1.
An array (a Lua table) of strings indicating the channel or channel
pattern associated with the measurement.
The returned value provides different information, based on what was
opened or closed when the reading was acquired:
â–ª If no channel or channel pattern is closed when the reading was
acquired, "None" is displayed.
â–ª If only a single channel or backplane relay was closed, the
channel number is displayed (for example, 5003 or 5915).
â–ª If a channel or backplane relay plus another backplane relay or
other channel is closed, then the channel number will be
displayed followed by a + sign (for example, 3005+ or 3915+).
The channel will be in the image unless the last close operation
involved only backplane relays.
â–ª If multiple channels and backplane relays were closed in a
channel list, the last channel specified will be stored. Channels
take precedence over backplane relays when stored. However, if
only multiple backplane relays are specified, then the first one will
be stored.
â–ª If a channel pattern was closed, then the first eight characters of
the channel pattern name are returned (for example,
mypattern1 is shown as mypatte).
An array (a Lua table) of strings, indicating the date of the reading
formatted in month, day, and year.