Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-23
bufferVar.collectchannels
This attribute sets the storage state of channel information with the readings in the buffer.
Instrument reset
Recall setup
Create configuration script
Save setup
Usage
state = bufferVar.collectchannels
bufferVar.collectchannels = state
The reading buffer collect channels mode; set to one of the following:
â–ª 0: Collect channels mode disabled (off); channel information is not stored in
the reading buffer
â–ª 1: Collect channels mode enabled (on); channel information is stored in the
reading buffer
Details
Assigning a value to this attribute enables or disables the storage of channel information, which
includes channel, backplane relay, or channel pattern information associated with the reading.
Reading this attribute returns the state of channel information collection.
When on, channel information is stored with readings in the buffer. This requires eight extra bytes of
storage per reading.
This value, off (0) or on (1), can only be changed when the buffer is empty. Empty the buffer using
the bufferVar.clear() function.
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
bufferVar.clear() (on page 11-21)
bufferVar.channels (on page 11-20)
Reading buffers (on page 6-7, on page 6-1)