
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-197
Details
The branch-on-user-limits block goes to a specified building block if a measurement meets the criteria set by this
command.
There are two user-defined limits: limit 1 and limit 2. Both include their own high and low values. You set these
limit threshold values as separate settings. Limit 1 and limit 2 are stored in the measurement configuration list.
You can set them to different values in different indices of the measurement configuration list to allow you to step
through different values. The results of these limit tests are recorded in the reading buffer that accompanies each
stored reading.
The type of limit can be:
•
Above: The measurement is above the value set by the limit low value. The high value is not used when
this type is selected.
•
Below: The measurement is below the value set by the limit high value. The low value is not used when
this type is selected.
•
Inside: The measurement is inside the low and high values set for the limit.
•
Outside: The measurement is outside the low and high values set for the limit.
The measurement block must be a measurement building block that occurs in the trigger model before the
branch-on-constant-limits block.
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
smu.measure.limit[Y].low.value
(on page 8-110)
smu.measure.limit[Y].high.value
trigger.model.setblock() — trigger.BLOCK_BRANCH_ON_EVENT
This command 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 block will act
branchToBlock
The block number of the trigger model block to execute when the specified event
occurs