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

Interactive sourcemeter instrument
Table of Contents

Advertisement

Section 8: TSP command reference
trigger.model.setblock() — trigger.BLOCK_BRANCH_DELTA
This command defines a trigger model block that goes to a specified block if the difference of two measurements
meets preset criteria.
Type
TSP-Link accessible
Function
Yes
Usage
trigger.model.setblock(blockNumber, trigger.BLOCK_BRANCH_DELTA, targetDifference,
branchToBlock)
trigger.model.setblock(blockNumber, trigger.BLOCK_BRANCH_DELTA, targetDifference,
branchToBlock, measureBlock)
blockNumber
targetDifference
branchToBlock
measureBlock
Details
This block calculates the difference between the last two measurements from a measure block. It subtracts the
most recent measurement from the previous measurement.
The difference between the measurements is compared to the target difference. If the difference is less than the
target difference, the trigger model goes to the specified branching block. If the difference is more than the target
difference, the trigger model proceeds to the next block in the trigger block sequence.
If you do not define the measurement block, it will compare measurements of a measure block that precedes the
branch delta block. For example, if you have a measure block, a wait block, another measure block, another wait
block, and then the branch delta block, the delta block compares the measurements from the second measure
block.
Example
trigger.model.setblock(5, trigger.BLOCK_BRANCH_DELTA, 0.35, 8, 3)
Configure trigger block 5 to branch to block 8 when the measurement difference from block 3 is less than 0.35.
Also see
Delta
(on page 3-100)
8-194
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Affected by
Where saved
Restore configuration
Configuration script Not applicable
Instrument reset
Power cycle
The sequence of the block in the trigger model
The value against which the block compares the difference
between the measurements
The block number of the trigger model block to execute when
the difference between the measurements is less than the
targetDifference
The blockNumber of the measurement block that makes the
measurements to be compared
Default value
2450-901-01 Rev. B/September 2013

Advertisement

Table of Contents
loading

Table of Contents