Buffervar.n - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual
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)
Also see
buffer.delete()
buffer.make()
bufferVar.clear()
print()
(on page 8-77)
printbuffer()
Reading buffers
Remote buffer operation

bufferVar.n

This attribute contains the number of readings in the specified buffer.
Type
TSP-Link accessible
Attribute (R)
Yes
Usage
numberOfReadings = bufferVar.n
numberOfReadings
bufferVar
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.
2450-901-01 Rev. B/September 2013
(on page 8-9)
(on page 8-11)
(on page 8-17)
(on page 8-78)
(on page 3-10)
(on page 3-27)
Affected by
Restore configuration
Instrument reset
Power cycle
The number of readings stored in the buffer
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2) or a user-defined buffer
Section 8: TSP command reference
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
Where saved
Default value
Not applicable
Not applicable
8-23

Advertisement

Table of Contents
loading

Table of Contents