
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-279
Details
The branch-on-dynamic-limits block defines a trigger model block that goes to a specified block in the
trigger model if a measurement meets user-defined criteria.
When you define this block, you set:
•
The type of limit (above, below, inside, or outside the limit values)
•
The limit number (you can have 1 or 2 limits)
•
The block to go to if the measurement meets the criteria
•
The block that makes the measurement that is compared to the limits; the last measurement from
that block is used
There are two user-defined limits: limit 1 and limit 2. Both include their own high and low values,
which are set using the front-panel Calculations limit settings or through commands. The results of
these limit tests are recorded in the reading buffer that accompanies each stored reading.
Limit values are stored in the measure configuration list, so you can use a configuration list to step
through different limit values.
The measure or digitize block must occur in the trigger model before the branch-on-dynamic-limits
block. If no measure or digitize block is defined, the measurement from the previous measure or
digitize block is used. If no previous measure or digitize block exists, an error is reported.
Example
trigger.model.setblock(7, trigger.BLOCK_BRANCH_LIMIT_DYNAMIC,
trigger.LIMIT_OUTSIDE, 2, 10, 5)
Configure block 7 to check if limit 2 is outside its limit values, based on the measurements made in block 5. If
values are outside the measurements, branch to block 10. If the values are not outside the measurements,
trigger model execution continues to block 8.
Also see
(on page 3-120)
smu.measure.limit[Y].low.value
(on page 8-158)
smu.measure.limit[Y].high.value
trigger.model.setblock() — trigger.BLOCK_BRANCH_ON_EVENT
This function branches to a specified block when a specified trigger event occurs.
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_ON_EVENT,
event
,
branchToBlock)
blockNumber
The sequence of the block in the trigger model
event
The event that must occur before the trigger model branches
the specified block
branchToBlock
The block number of the trigger model block to execute when
the specified event occurs