Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-268
2470-901-01 Rev. A /
May
2019
Trigger events
Event description
Event constant
Trigger event blender
N
(1 to 2), which combines trigger
events
trigger.EVENT_BLENDER
N
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
print(trigger.tsplinkout[3].stimulus)
Outputs the event that will start action on
TSP-Link trigger line 3.
Also see
trigger.tsplinkout[N].assert()
(on page 14-264)
(on page 14-272)
trigger.wait()
This function waits for a trigger event.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
triggered
= trigger.wait(
timeout
)
triggered
A trigger was detected during the timeout period:
true
No triggers were detected during the timeout period:
false
timeout
Maximum amount of time in seconds to wait for the trigger
Details
This function waits up to
timeout
seconds for a trigger on the active command interface. A
command interface trigger occurs when:
•
A GPIB GET command is detected (GPIB only)
•
A VXI-11 device_trigger method is invoked (VXI-11 only)
•
A
*TRG
message is received
If one or more of these trigger events were previously detected, this function returns immediately.
After waiting for a trigger with this function, the event detector is automatically reset and rearmed.
This is true regardless of the number of events detected.