2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-71
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 3-50)
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