
10-22
Return to
2600AS-901-01 Rev. B / September 2008
Section 10: Triggering
Series 2600A System SourceMeter® Instruments Reference Manual
Accessing the event log from the command interface
The Instrument Control Library (ICL) can be used to view the event log from any command
interface. The event log must be enabled before LXI trigger events can be viewed.
To enable the event log:
eventlog.enable = 1
To view the event log from a remote interface:
print(eventlog.all())
This command returns one or more strings similar to the following:
14:14:02.000 17 Jun 2008, LAN0, 10.80.64.191, LXI, 0, 1213712000, not available, 0, 0x10,0x00
The string displays the same information as the web interface. Commas separate the different
fields. The fields are returned in the following order:
•
UTC time
•
Event Id
•
Sender
•
HwDetect/ version
•
Domain
•
sequence number
•
ptp time
•
epoch (from 1588)
•
flags
•
Data
for detailed descriptions.
Command interface triggering
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.
Use
trigger.EVENT_ID
to monitor for command interface triggers. To ensure that commands
and triggers issued over the command interface are processed in the correct order, a trigger event
is not generated until:
•
The trigger command is executed.
•
trigger.wait()
retrieves the trigger command from the input queue before it would
normally be executed.
Command interface triggering does not generate action overruns. The triggers are processed in
the order that they are received in the Series 2600A input queue. The Series 2600A does not
process incoming commands while a script is running. Input triggers that are not processed can
cause an overflow in the input queue. It is important to make sure a script processes triggers while
it is running.