Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-68
2461-901-01 A/November 2015
eventlog.clear()
This function clears the event log.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
eventlog.clear()
Details
This command removes all events from the event log, including entries in the front-panel event log.
Also see
(on page 8-71)
(on page 2-142)
eventlog.getcount()
This function returns the number of unread events in the event log.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
eventlog.getcount()
eventlog.getcount(
eventType
)
eventType
Limits the return to specific event log types; set a cumulative integer value that
represents the event log types to:
•
Errors only:
eventlog.SEV_ERROR
or
1
•
Warnings only:
eventlog.SEV_WARN
or
2
•
Errors and warnings only:
eventlog.SEV_WARN|eventlog.SEV_ERROR
or
3
•
Information only:
eventlog.SEV_INFO
or
4
•
Errors and information only:
eventlog.SEV_INFO|eventlog.SEV_ERROR
or
5
•
Warnings and information only:
eventlog.SEV_INFO|eventlog.SEV_WARN
or
6
•
All events:
eventlog.SEV_ALL
or
7
Details
A count finds the number of unread events in the event log. You can specify the event types to return,
or return the count for all events.
This command reports the number of events that have occurred since the command was last sent or
since the event log was last cleared.
Events are read automatically when
localnode.showevents
is enabled. You can also read them
individually with
eventlog.next()
.