2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-233
The following table shows the constants for the events.
Trigger events
Event description
Event constant
Trigger event blender
N
(1 to 2), which combines trigger
events
trigger.EVENT_BLENDER
N
A command interface trigger:
Any remote interface: *
TRG
GPIB only: GET bus command
USB only: A USBTMC TRIGGER message
VXI-11: VXI-11 command
device_trigger
trigger.EVENT_COMMAND
Digital input 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
Front-panel TRIGGER key press
trigger.EVENT_DISPLAY
Appropriate LXI trigger packet is received on LAN trigger
object
N
(1 to 8)
trigger.EVENT_LAN
N
No trigger event
trigger.EVENT_NONE
Notify trigger block
N
(1 to 8) generates a trigger event when
the trigger model executes it
trigger.EVENT_NOTIFY
N
Source limit condition occurs
trigger.EVENT_SOURCE_LIMIT
Trigger timer
N
(1 to 4) expired
trigger.EVENT_TIMER
N
Line edge detected on TSP-Link synchronization line
N
(1 to 3)
trigger.EVENT_TSPLINK
N
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 8-37)
trigger.model.setblock() — trigger.BLOCK_BRANCH_ONCE
This function causes the trigger model to branch to a specified building block the first time it is encountered in the
trigger model.
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_ONCE,
branchToBlock
)
blockNumber
The sequence of the block in the trigger model
branchToBlock
The block number of the trigger model block to execute when the trigger model first
encounters this block