
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-201
trigger.model.setblock() — trigger.BLOCK_BUFFER_CLEAR
This command 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 the trigger model reaches the buffer clear trigger block, the instrument empties the buffer that is specified
by the command. The specified buffer can be the default buffer or a buffer that you defined. Assigning the name
in the buffer clear trigger block does not create a buffer; it only references an existing buffer.
Readings that are made after the buffer is cleared are added to the beginning of the buffer.
You must create the buffer before you define this block.
If no buffer name is assigned, the instrument clears default buffer 1.
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 8-11)
Reading-buffer clear building block
(on page 3-95)