Trigger.model.setblock() — Trigger.block_Buffer_Clear - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual
trigger.model.setblock() — trigger.BLOCK_BUFFER_CLEAR
This command defines a trigger model block that clears the reading buffer.
Type
TSP-Link accessible
Function
Yes
Usage
trigger.model.setblock(blockNumber, trigger.BLOCK_BUFFER_CLEAR)
trigger.model.setblock(blockNumber, trigger.BLOCK_BUFFER_CLEAR, bufferName)
blockNumber
bufferName
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
buffer.make()
Reading-buffer clear building block
2450-901-01 Rev. B/September 2013
Affected by
Restore configuration
Instrument reset
Power cycle
(on page 8-11)
(on page 3-95)
Where saved
Default value
Configuration script Not applicable
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
Section 8: TSP command reference
8-201

Advertisement

Table of Contents
loading

Table of Contents