14: TSP command reference  2470 High Voltage SourceMeter Instrument 
 
14-264 2470-901-01 Rev. A / May 2019 
trigger.tsplinkin[N].wait() 
This function waits for a trigger. 
Type  TSP-Link accessible 
Affected by  Where saved  Default value 
Usage 
triggered = trigger.tsplinkin[N].wait(timeout) 
Trigger detection indication; set to one of the following values: 
 true: A trigger is detected during the timeout period
: A trigger is not detected during the timeout period
The trigger line (1 to 3) 
The timeout value in seconds 
Details 
This function waits up to the timeout value for an input trigger. If one or more trigger events are 
detected since the last time this command or trigger.tsplinkin[N].clear() was called, 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. 
Example 
 
tsplink.line[3].mode = tsplink.MODE_TRIGGER_OPEN_DRAIN 
triggered = trigger.tsplinkin[3].wait(10) 
print(triggered) 
Waits up to 10 s for a trigger on 
TSP-Link line 3. 
If false is returned, no trigger
was detected during the 10-s 
timeout. 
If true is returned, a trigger was
Also see 
trigger.tsplinkin[N].clear() (on page 14-261) 
tsplink.line[N].mode (on page 14-271) 
trigger.tsplinkout[N].assert() 
This function simulates the occurrence of the trigger and generates the corresponding trigger event. 
Type  TSP-Link accessible 
Affected by  Where saved  Default value 
Function  Yes 
Usage 
trigger.tsplinkout[N].assert() 
The trigger line (1 to 3)