![Tektronix Keithley SourceMeter 2470 Reference Manual Download Page 875](http://html1.mh-extra.com/html/tektronix/keithley-sourcemeter-2470/keithley-sourcemeter-2470_reference-manual_1078034875.webp)
2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-235
trigger.model.setblock() — trigger.BLOCK_BUFFER_CLEAR
This function defines a trigger model block that clears the reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
Not applicable
Usage
trigger.model.setblock(
blockNumber
, trigger.BLOCK_BUFFER_CLEAR)
trigger.model.setblock(
blockNumber
, trigger.BLOCK_BUFFER_CLEAR,
bufferName
)
blockNumber
The sequence of the block in the trigger model
bufferName
The name of the buffer, which must be an existing buffer; if no buffer is defined,
defbuffer1
is used
Details
When trigger model execution reaches the buffer clear trigger block, the instrument empties the
specified reading buffer. The specified buffer can be the default buffer or a buffer that you defined.
Example
trigger.model.setblock(3, trigger.BLOCK_BUFFER_CLEAR, capTest2)
Assign trigger block 3 to buffer clear; when the trigger model reaches block 3, it clears the reading buffer
named
capTest2
.
Also see
(on page 14-12)
trigger.model.setblock() — trigger.BLOCK_CONFIG_NEXT
This function recalls the settings at the next index of a source or measure configuration list, or both a source and
measure configuration list.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
Not applicable
Usage
trigger.model.setblock(
blockNumber
, trigger.BLOCK_CONFIG_NEXT, "
configurationList
")
trigger.model.setblock(
blockNumber
, trigger.BLOCK_CONFIG_NEXT, "
configurationList
",
"
optionalConfigList
")
blockNumber
The sequence of the block in the trigger model
configurationList
A string that defines the source or measure configuration list to
recall
optionalConfigList
The name of the second configuration list to recall the index from;
must be the opposite type of list than the first; for example, if the
first configuration list is a measure list, the second configuration
list must be a source list