Trigger.model.setblock() - Trigger.block_Buffer_Clear - Keithley 2461 Reference Manual

1kw pulse mode interactive sourcemeter instrument
Table of Contents

Advertisement

Section 8: TSP command reference
Details
The branch-once-excluded block is ignored the first time the trigger model encounters it. After the first
encounter, the trigger model goes to the specified branching block.
The branch-once-excluded block is reset when the trigger model starts or is placed in idle.
Example
trigger.model.setblock(2, trigger.BLOCK_BRANCH_ONCE_EXCLUDED, 4)
When the trigger model reaches block 2 the first time, the trigger model goes to block 3. If the trigger model
reaches this block again, the trigger model goes to block 4.
Also see
Once excluded block
trigger.model.setblock() — trigger.BLOCK_BUFFER_CLEAR
This function 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 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.
If you are clearing a user-defined reading buffer, you must create the buffer before you define this
block.
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()
Buffer clear block
8-282
(on page 3-121)
Affected by
Restore configuration
Instrument reset
Power cycle
(on page 8-14)
(on page 3-108)
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Where saved
Configuration script
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
Default value
Not applicable
2461-901-01 A/November 2015

Advertisement

Table of Contents
loading

Table of Contents