
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-179
trigger.lanin[N].wait()
This function waits for an input trigger.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
triggered
= trigger.lanin[
N
].wait(
timeout
)
triggered
Trigger detection indication (
true
or
false
)
N
The trigger packet over LAN to wait for (1 to 8)
timeout
Maximum amount of time in seconds to wait for the trigger event
Details
If one or more trigger events have been detected since the last time
trigger.lanin[
N
].wait()
or
trigger.lanin[
N
].clear()
was called, this function returns immediately.
After waiting for a LAN trigger event with this function, the event detector is automatically reset and rearmed
regardless of the number of events detected.
Example
triggered = trigger.lanin[5].wait(3)
Wait for a trigger with LAN packet 5 with a timeout of
3 seconds.
Also see
(on page 8-177)
(on page 8-178)
(on page 8-179)
(on page 8-184)
trigger.lanout[N].assert()
This function simulates the occurrence of the trigger and generates the corresponding event.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
trigger.lanout[
N
].assert()
N
The LAN event number (1 to 8)
Details
Generates and sends a LAN trigger packet for the LAN event number specified.
Sets the pseudo line state to the appropriate state.
The following indexes provide the listed LXI events:
•
1:LAN0
•
2:LAN1
•
3:LAN2
•
…
•
8:LAN7