Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-153
dmm.buffer.info()
This function returns the size and capacity of the reading buffer parameter.
Usage
size, capacity = dmm.buffer.info(bufferVar)
Number representing the N (presently stored) attribute of the reading buffer
parameter
Number representing the overall capacity attribute of the reading buffer parameter
String representing the reading buffer name that you want to query for size and
capacity
Details
This function uses the specified reading buffer input parameter name to find the corresponding size
and capacity to return. Use this function with the dmm.buffer.catalog() function to output the
size and capacity for all reading buffers in the system.
Example
for n in dmm.buffer.catalog() do
print(dmm.buffer.info(n))
end
Assume the system has the following reading
buffers created: buffer1, buffer2, buffer3,
buffer4, and buffer5.
Query the system for the size and capacity of
each reading buffer without formatting the
results.
The output is:
0.000000000e+00 2.000000000e+03
0.000000000e+00 4.000000000e+03
0.000000000e+00 5.000000000e+03
0.000000000e+00 3.000000000e+03
0.000000000e+00 1.000000000e+03
for n in dmm.buffer.catalog() do
size, cap = dmm.buffer.info(n)
print(n, 'size = ' .. size, 'capacity = ' ..
cap)
end
Query the system for the name, size, and
capacity of each reading buffer while
formatting the results.
The output is:
buffer2 size = 0 capacity = 2000
buffer4 size = 0 capacity = 4000
buffer5 size = 0 capacity = 5000
buffer3 size = 0 capacity = 3000
buffer1 size = 0 capacity = 1000
Also see
dmm.buffer.catalog() (on page 11-152)