
Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-88
2606B-901-01 Rev. B / May 2018
Example 1
print(eventlog.next())
Get the oldest message in the event log and remove that entry from the log.
Output:
17:28:22.085 10 Oct 2009, LAN2, 192.168.1.102, LXI, 0, 1192037134, <no time>, 0,
0x0
Example 2
print(eventlog.next())
If you send this command when there is nothing in the event log, you will get the following output:
nil
Also see
(on page 7-86)
(on page 7-86)
(on page 7-88)
eventlog.overwritemethod
This attribute controls how the event log processes events if the event log is full.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Instrument reset
Recall setup
Not saved
1
(eventlog.DISCARD_OLDEST)
Usage
method
= eventlog.overwritemethod
eventlog.overwritemethod =
method
method
Set to one of the following values:
0
or
eventlog.DISCARD_NEWEST
: New entries are not logged
1
or
eventlog.DISCARD_OLDEST
: Old entries are deleted as new events
are logged
Details
When this attribute is set to
eventlog.DISCARD_NEWEST
, new entries are not logged.
When this attribute is set to
eventlog.DISCARD_OLDEST
, the oldest entry is discarded when a new
entry is added.
Example
eventlog.overwritemethod = 0
When the log is full, the event log will ignore
new entries.
Also see
(on page 7-86)
(on page 7-86)