Section 8: TSP command reference
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
8-312
DMM7510-901-01 Rev. B / May 2015
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
(on page 3-87)
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.
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
(on page 8-18)