![background image](http://html2.mh-extra.com/html/keithley/interactive-sourcemeter-2450/interactive-sourcemeter-2450_reference-manual_4033478554.webp)
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-23
Details
This command indicates whether the reading buffer should log informational events such as buffer full and buffer
cleared.
Example
reset()
MyBuffer = buffer.make(500)
print(defbuffer2.logstate)
defbuffer2.logstate = buffer.ON
print(defbuffer2.logstate)
print(defbuffer1.logstate)
print(MyBuffer.logstate)
Create the user-defined buffer
MyBuffer
.
Print the logstate of
defbuffer2
.
Output:
1
Set the default
defbuffer2
to start logging
support information.
Print the logstate of both default buffers and
the user-created buffer
MyBuffer
.
Output:
1
1
0
Also see
(on page 8-9)
(on page 8-11)
(on page 8-17)
(on page 8-77)
(on page 8-78)
(on page 3-10)
(on page 3-27)
bufferVar.n
This attribute contains the number of readings in the specified 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 buffer
bufferVar
The name of the reading buffer, which may be a default buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer
Details
If you do not know how many readings are in a 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, defbuffer1.n, defbuffer1.readings)
However, when you use the
bufferVar.n
command, be aware of how much data is returned because the
buffer in the receiving application (such as in LabView or VB net) needs to be big enough to receive all of the
data.