Buffer Status; Dynamically-Allocated Buffers - Keithley 3700 series Reference Manual

System switch/multimeter
Hide thumbs Also See for 3700 series:
Table of Contents

Advertisement

Series 3700 System Switch/Multimeter Reference Manual

Buffer status

The buffer reading status attribute can include the status information as a numeric value shown
in the following table. To access status information, send the following command:
stat_info = readingbuffer.statuses[2]
Bit
B0
B1
B2
B3
B6
B7

Dynamically-allocated buffers

RAM reading buffers are created and dynamically-allocated with the dmm.makebuffer(n)
command, where n is the maximum number of readings the buffer can store.
Example: The following command allocates a buffer named "mybuffer" that can store 100
readings:
mybuffer = dmm.makebuffer(100)
Example: To delete an allocated buffer named "mybuffer:"
mybuffer = nil
Example: To see if the high limit 1 was exceeded during the reading:
stat_info = readingbuffer.statuses[3]
if (bit.bitand(stat_info, dmm.buffer.LIMIT1_HIGH_BIT) ==
else
end
Document Number: 3700S-901-01 Rev. A / August 2007
Name
Hex value
Low limit 1
0x01
High limit 1
0x02
Low limit 2
0x04
High limit 2
0x08
Measure overflow
0x40
Measure connect
0x80
question
dmm.buffer.LIMIT1_HIGH_BIT) then
print("Limit 1 high exceeded")
print("Limit 1 high okay")
Section 6: Buffer: Data Storage and Retrieval
ICL
dmm.buffer. LIMIT1_LOW_BIT
dmm.buffer.LIMIT1_HIGH_BIT
dmm.buffer. LIMIT2_LOW_BIT
dmm.buffer.LIMIT2_HIGH_BIT
dmm.buffer.MEAS_OVERFLOW_BIT
dmm.buffer.MEAS_CONNECT_QUESTION_BIT
6-9

Advertisement

Table of Contents
loading

Table of Contents