Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-299
The event can occur before trigger model execution reaches the wait block. If the event occurs after
trigger model execution starts but before the trigger model execution reaches the wait block, the
trigger model records the event. By default, when trigger model execution reaches the wait block, it
executes the wait block without waiting for the event to happen again (the clear parameter is set to
never).
The instrument clears the memory of the recorded event when trigger model execution is at the start
block and when the trigger model exits the wait block. It also clears the recorded trigger event when
the clear parameter is set to enter.
All items in the list are subject to the same action; you cannot combine
AND
and
OR
logic in a single
block.
You cannot leave the first event as no trigger. If the first event is not defined, the trigger model errors
when you attempt to initiate it.
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(9, trigger.BLOCK_WAIT, trigger.EVENT_DISPLAY)
Set trigger model block 9 to wait for a user to press the TRIGGER key on the front panel before continuing.
Also see
(on page 3-110)