Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-198
2470-901-01 Rev. A /
May
2019
Details
A command trigger indicates if a trigger event has been detected over a command interface since the
last
trigger.wait()
command was sent. Command triggers are generated by:
•
Sending
*TRG
over a remote interface
•
GET
bus commands
•
VXI-11 device trigger commands
trigger.clear()
clears the command triggers and discards the history of trigger events.
Example
*TRG
print(trigger.wait(1))
trigger.clear()
print(trigger.wait(1))
Generate a trigger event.
Check if there are any pending trigger
events.
Output:
true
Clear any pending command triggers.
Check if there are any pending trigger
events.
Output:
false
Also see
(on page 14-268)
trigger.digin[N].clear()
This function clears the trigger event on a digital input line.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
trigger.digin[
N
].clear()
N
Digital I/O trigger line (1 to 6)
Details
The event detector of a trigger enters the detected state when an event is detected. For the specified
trigger line, this command clears the event detector, discards the history, and clears the overrun
status
(
sets the overrun status to
false
).
Example
trigger.digin[2].clear()
Clears the trigger event detector on I/O line 2.
Also see
(on page 14-52)
Digital I/O port configuration
(on page 14-200)
(on page 14-200)