
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-280
2461-901-01 A/November 2015
Details
The branch-on-event block goes to a branching block after a specified trigger event occurs. If the
trigger event has not yet occurred when the trigger model reaches the branch-on-event block, the
trigger model continues to execute the blocks in the normal sequence. After the trigger event occurs,
the next time the trigger model reaches the branch-on-event block, it goes to the branching block.
If you set the branch event to none, an error is generated when you run the trigger model.
The following table shows the constants for the events.
Trigger events
Event description
Event constant
No trigger event
trigger.EVENT_NONE
Front-panel TRIGGER key press
trigger.EVENT_DISPLAY
Notify trigger block
N
(1 to 8) generates a trigger event when
the trigger model executes it
trigger.EVENT_NOTIFY
N
A command interface trigger:
•
Any remote interface: *
TRG
•
GPIB only: GET bus command
•
VXI-11: VXI-11 command
device_trigger
trigger.EVENT_COMMAND
Line edge (either rising, falling, or either based on the
configuration of the line) detected on digital input line
N
(1 to 6)
trigger.EVENT_DIGIO
N
Line edge detected on TSP-Link synchronization line
N
(1 to 3)
trigger.EVENT_TSPLINK
N
Appropriate LXI trigger packet is received on LAN trigger
object
N
(1 to 8)
trigger.EVENT_LAN
N
Trigger event blender
N
(1 to 2), which combines trigger
events
trigger.EVENT_BLENDER
N
Trigger timer
N
(1 to 4) expired
trigger.EVENT_TIMER
N
Source limit condition occurs
trigger.EVENT_SOURCE_LIMIT
Example
trigger.model.setblock(6, trigger.BLOCK_BRANCH_ON_EVENT, trigger.EVENT_DISPLAY,
2)
When the trigger model reaches this block, if the front-panel TRIGGER key has been pressed, the trigger
model returns to block 2. If the TRIGGER key has not been pressed, the trigger model continues to block 7
(the next block in the trigger model).
Also see
(on page 3-118)