
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-213
Details
You can use the wait block to synchronize measurements with other instruments and devices.
Events that you can set the instrument to wait for include:
•
Digital input/output signals, such as DB-9 and TSP-Link
•
LAN events
•
Blenders
The event can occur before the trigger model reaches the wait block. If the event occurs after the trigger model
starts but before the trigger model reaches the wait block, the trigger model records the event. When the trigger
model reaches the wait block, it executes the wait block without waiting for the event to happen again.
The instrument clears the memory of the recorded event when the trigger model is at the start block and when
the trigger model exits the wait block.
You can have up to eight wait blocks in a trigger model.
All items in the list are subject to the same action — you cannot combine
AND
and
OR
logic in a single command.
The events can be one of the events shown in the following table.
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 occurred:
•
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-96)