High Voltage SourceMeter Instrument Reference Manual Section 14:
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
Instrument reset
Usage
trigger.model.setblock(blockNumber, trigger.BLOCK_BUFFER_CLEAR)
trigger.model.setblock(blockNumber, trigger.BLOCK_BUFFER_CLEAR, bufferName)
The sequence of the block in the trigger model
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
.
Also see
buffer.make() (on page 14-12)
Buffer clear block (on page 8-28)
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
Configuration script Not applicable
Usage
trigger.model.setblock(blockNumber, trigger.BLOCK_CONFIG_NEXT, "configurationList")
trigger.model.setblock(blockNumber, trigger.BLOCK_CONFIG_NEXT, "configurationList",
"optionalConfigList")
The sequence of the block in the trigger model
A string that defines the source or measure configuration list to
recall
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