Section 8: TSP command reference
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
8-32
DMM7510-901-01 Rev. B / May 2015
bufferVar.n
This attribute contains the number of readings in the specified reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
numberOfReadings
=
bufferVar
.n
numberOfReadings
The number of readings stored in the reading buffer
bufferVar
The name of the reading buffer, which may be a default buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer
Details
You can call this command to return the number of readings stored in the specified reading buffer.
You can use the
bufferVar
.n
attribute in other commands. For example, to print all of the readings
in a buffer, use the following command:
printbuffer(1,
bufferVar
.n,
bufferVar
.readings)
Where
bufferVar
is the name of the buffer to use.
Example
reset()
testData = buffer.make(100)
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
print(testData.n)
print(defbuffer1.n)
print(defbuffer2.n)
Create a reading buffer named
testData
, configure the instrument to
make three measurements, and store the
readings in the buffer.
Print the number of readings in
testData
.
Output:
3
Print the number of readings in
defbuffer1
.
Example output:
0
Print the number of readings in
defbuffer2
.
Example output:
0
Also see
(on page 8-16)
(on page 8-18)
(on page 8-24)
(on page 8-231)
(on page 8-232)
(on page 3-13)
(on page 3-30)