Section 5: Reading buffers Model 2601B-PULSE System SourceMeter Instrument Reference Manual
5-12 2601B-PULSE-901-01A April 2020
Buffer status
The buffer reading status attribute includes the status information as a numeric value; see the
following table for values. For example, to access status information for the second element of SMU
buffer 1, use the following command:
stat_info = smua.nvbuffer1.statuses[2]
Over temperature condition
Measure range was autoranged
Source range was autoranged
4-wire (remote) sense mode enabled
Source function in compliance
Dynamic reading buffers
Reading buffers can also be allocated dynamically. Dynamic reading buffers are created and
allocated with the smua.makebuffer(n) command, where n is the number of readings the buffer
can store. For example, the following command allocates a reading buffer named mybuffer that can
store 100 readings:
mybuffer = smua.makebuffer(100)
Allocated reading buffers can be deleted as follows:
mybuffer = nil
Dynamically allocated reading buffers can be used interchangeably with the smua.nvbufferY
buffers that are described in Dedicated reading buffer designations (on page 5-6).
Buffer examples
Dedicated reading buffer example
The following programming example illustrates how to store data using dedicated reading buffer 1. In
the example, the 2601B-PULSE loops for voltages from 0.01 V to 1 V with 0.01 V steps (essentially
performing a staircase sweep), stores 100 current readings and source values in buffer 1, and then
recalls all 100 readings and source values.