
Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-20
3700AS-901-01 Rev. D/June 2018
Example
bufferCapacity = buffer1.capacity
print(bufferCapacity)
Reads the capacity of a reading buffer
named
buffer1
.
Output:
1.05
The above output indicates that the buffer
can hold 100000 readings.
Also see
bufferVar.channels
When enabled by the
bufferVar
.collectchannels
attribute, this buffer recall attribute gets the channel,
backplane relay, or channel pattern information stored with readings in the buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Buffer storage settings
Clearing the buffer
Instrument reset
Recall setup
USB flash drive using
dmm.savebuffer or
dmm.appendbuffer
Not applicable
Usage
channels =
bufferVar
.channels[
N
]
bufferVar
The reading buffer
N
The reading number (
1
to
bufferVar
.n
)
Details
The channels information from a reading buffer is only available if the
bufferVar
.collectchannels
attribute is set to 1 (default setting). If it is set to 0, you will not be
able to access the channels information from a reading buffer. You may change the collect channels
setting when the buffer is empty (
bufferVar
.clear()
).
This read-only attribute is 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 is displayed followed by a plus sign (+) (for example,
3005+
or
3915+
). The
channel is 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
is stored. Channels take precedence over backplane relays when stored. However, if only
multiple backplane relays are specified, then the first one is stored.
•
If a channel pattern was closed, then the first seven characters of the channel pattern name are
returned (for example,
mypattern1
is shown as
mypatte
).