Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 5: Reading buffers
2601B-PULSE-901-01A April 2020 5-11
Reading buffer attributes
Use the reading buffer attributes to access the reading buffer data. The table below displays the
attributes that you can use to access the reading buffer data.
An array (a Lua table) of strings indicating the function measured for
the reading (current, voltage, ohms, or watts).
An array (a Lua table) of full-scale range values for the measure range
used when the measurement was made.
An array (a Lua table) of the readings stored in the reading buffer. This
array holds the same data that is returned when the reading buffer is
accessed directly; that is, rb[2] and rb.readings[2] access the
same value.
An array (a Lua table) of strings indicating the source function at the
time of the measurement (current or voltage).
An array (a Lua table) of strings indicating the state of the source (off
or on).
An array (a Lua table) of full-scale range values for the source range
used when the measurement was made.
If enabled, an array (a Lua table) of the sourced values in effect at the
time of the reading.
An array (a Lua table) of status values for all the readings in the buffer.
The status values are floating-point numbers that encode the status
value into a floating-point value. See Buffer status (on page 5-12).
If enabled, an array (a Lua table) of timestamps, in seconds, of when
each reading occurred. These are relative to the basetimestamp for
the buffer. See Reading buffer commands (on page 5-6).
* The default attribute is readings, which can be omitted.
Examples:
The following programming example illustrates how to output 100 readings from buffer 1:
printbuffer(1, 100, smua.nvbuffer1.readings)
The default reading attribute is readings and can be omitted. Thus, the following would also output
100 readings from buffer 1:
printbuffer(1, 100, smua.nvbuffer1)
Similarly, the following outputs 100 corresponding source values from buffer 1:
printbuffer(1, 100, smua.nvbuffer1.sourcevalues)