
2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-85
Example
errorcode, message = errorqueue.next()
print(errorcode, message)
Reads the oldest entry in the error queue. The
output below indicates that the queue is empty.
Output:
0.00 Queue Is Empty
Also see
(on page 7-83)
(on page 7-83)
(on page 8-2)
eventlog.all()
This function returns all entries from the event log as a single string and removes them from the event log.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
logString
= eventlog.all()
logString
A listing of all event log entries
Details
This function returns all events in the event log. Logged items are shown from oldest to newest. The
response is a string that has the messages delimited with a new line character.
This function also clears the event log.
If there are no entries in the event log, this function returns the value
nil
.
Example
print(eventlog.all())
Get and print all entries from the event log and remove the entries from the log.
Output:
17:26:35.690 10 Oct 2007, LAN0, 192.168.1.102, LXI, 0, 1192037132,
1192037155.733269000, 0, 0x0
17:26:39.009 10 Oct 2007, LAN5, 192.168.1.102, LXI, 0, 1192037133,
1192037159.052777000, 0, 0x0
Also see
(on page 7-86)
(on page 7-86)
(on page 7-88)