12-68 Return to Section Topics 2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library Series 2600 System SourceMeter® Instruments Reference Manual
Example Include source values with readings for SMU A buffer 1:
smua.nvbuffer1.collectsourcevalues = 1
smuX.nvbufferY.collecttimestamps X = SMU channel (a or b)
Y = NV buffer (1 or 2)
Attribute Timestamp collection for the buffer.
Usage state = smuX.nvbufferY.collecttimestamps-- Reads collection state.
smuX.nvbufferY.collecttimestamps = state-- Writes collection state.
Set state to one of the following values:
0 Timestamp collection disabled (off).
1 Timestamp collection enabled (on).
Remarks • Assigning a state value to this attribute enables or disables the storage of timestamps.
Reading this attribute returns the state of timestamp collection.
• When on, timestamps will be stored with readings in the buffer. This requires four extra
bytes of storage per reading. The first reading is time stamped at zero seconds.
Subsequent readings are time stamped relative to the time storage was started.
• This value, off or on, can only be changed when the buffer is empty. The buffer can be
emptied using the smuX.nvbufferY.clear function.
Details See “Reading buffers” in this section and in Section 7.
Also see smuX.measure.overlappedY, smuX.measure.Y, smuX.nvbufferY
Example Include timestamps with readings for SMU A buffer 1:
smua.nvbuffer1.collecttimestamps = 1
smuX.nvbufferY.n
X = SMU channel (a or b)
Y = NV buffer (1 or 2)
Attribute Number of readings in the buffer.
Usage bufferreadings = smuX.nvbufferY.n
Remarks • Reading this attribute returns the number of readings that are stored in the buffer.
• This is a read-only attribute.
Details See “Reading buffers” in this section and in Section 7.
Also see smuX.measure.overlappedY, smuX.measure.Y, smuX.nvbufferY
Example Read the number of readings stored in SMU A buffer 1:
bufferreadings = smua.nvbuffer1.n
print(bufferreadings)
Output: 1.250000+02
The above output indicates that there are 125 readings stored in the buffer.
smuX.nvbufferY.timestampresolution X = SMU channel (a or b)
Y = NV buffer (1 or 2)
Attribute Timestamp resolution.
Usage tsres = smuX.nvbufferY.timestampresolution -- Reads collection state.
smuX.nvbufferY.timestampresolution = tsres -- Writes collection state.
tsres Timestamp resolution in seconds.
Remarks • Assigning to this attribute sets the resolution for the timestamps. Reading this attribute
returns the timestamp resolution value.
• The minimum timestamp resolution is 0.000001seconds (1µs). At this resolution, the
reading buffer can store unique timestamps for up to 71 minutes. This value can be
increased for very long tests.
• When setting this value it will be rounded to an even power of 2µs.
Details See “Reading buffers” in this section and in Section 7.
Also see smuX.measure.overlappedY, smuX.measure.Y, smuX.nvbufferY
Example Set the timestamp resolution for SMU A buffer 1 to 10µs:
smua.nvbuffer1.timestampresolution = 0.00001