Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Section 8: TSP command reference
DMM7510-901-01 Rev. B / May 2015
8-305
trigger.model.setblock() — trigger.BLOCK_BRANCH_DELTA
This function defines a trigger model block that goes to a specified block if the difference of two measurements
meets preset criteria.
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_BRANCH_DELTA,
targetDifference
,
branchToBlock
)
trigger.model.setblock(
blockNumber
, trigger.BLOCK_BRANCH_DELTA,
targetDifference
,
branchToBlock
,
measureBlock
)
blockNumber
The sequence of the block in the trigger model
targetDifference
The value against which the block compares the difference
between the measurements
branchToBlock
The block number of the trigger model block to execute when
the difference between the measurements is less than or equal
to the
targetDifference
measureBlock
The block number of the measure or digitize block that makes
the measurements to be compared; if this is
0
or undefined, the
trigger model uses the previous measure or digitize block
Details
This block calculates the difference between the last two measurements from a measure or digitize
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 measure or digitize block, it will compare measurements of a measure or
digitize 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. If a preceding measure or digitize
block does not exist, an error occurs.
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
(on page 3-87)