![background image](http://html1.mh-extra.com/html/keithley/2600a-series/2600a-series_reference-manual_4006539379.webp)
2600AS-901-01 Rev. B / September 2008
Return to
19-57
Series 2600A System SourceMeter® Instruments Reference Manual
Section 19: Remote Commands
eventlog.enable
Attribute
The enabled or disabled status of the event log.
Default
eventlog.ENABLE
TSP-Link
accessibility
This attribute can be accessed from a remote TSP-Link node.
Usage
enable = eventlog.enable
-- Reads event log status.
eventlog.enable = enable
-- Writes event log status.
Set
enable
to one of the following values:
1
or
eventlog.ENABLE
Event log enabled.
0
or
eventlog.DISABLE
Event log disabled.
Remarks
• When the event log is disabled, no new events will be logged, but existing events may be read
and removed.
• When the event log is enabled, new events will be logged.
Example
eventlog.enable = 0
eventlog.next
Function
Returns the next entry from the event log and removes it from the log.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage
logstring = eventlog.next()
logstring
The next log entry.
Remarks
• Returns the next entry from the event log and removes it from the log.
• If there are no entries in the event log, returns the value
nil
.
Example
print(eventlog.next())
Output:
17:28:22.085 10 Oct 2007, LAN2, 192.168.1.102, LXI, 0, 1192037134, <no
time>, 0, 0x0
print(eventlog.next())
Output:
17:28:25.549 10 Oct 2007, LAN6, 192.168.1.102, LXI, 0, 1192037135, <no
time>, 0, 0x0
print(eventlog.next())
Output:
17:28:31.563 10 Oct 2007, LAN4, 192.168.1.102, LXI, 0, 1192037136, <no
time>, 0, 0x0
print(eventlog.next())
Output:
nil