
Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-21
Example
reset()
testData = dmm.makebuffer(1000)
testData.collectchannels = 1
dmm.nplc = 0.5
dmm.range = 0
dmm.configure.set("Dcv_100mV")
dmm.setconfig("slot2", "Dcv_100mV")
scan.create("2035:2040")
scan.execute(testData)
print(testData.channels[1])
printbuffer(1, 6, testData.channels)
This example creates a reading buffer named
testData
, configures the buffer to collect
channel data, sets and saves the DMM
configuration, creates a scan list, and then
runs the scan.
The
print()
command then outputs the first
measurement channel.
Output:
2035+
The
printbuffer()
command then outputs
the channels for measurements 1 to 6 in the
reading buffer.
Output:
2035+, 2036+, 2037+, 2038+, 2039+,
2040+
Also see
(on page 11-21)
(on page 11-23)
bufferVar.clear()
This function empties the buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
bufferVar
.clear()
bufferVar
The reading buffer
Details
This function clears all readings and statistics from the specified buffer (for example, time, status,
channels, and units) from the specified buffer.