Section 8: TSP command reference Model 2461 Interactive SourceMeter® Instrument Reference Manual8-68 2461-901-01 A/November 2015eventlog.clear()This function clears the event log.Type TSP-Link accessible Affected by Where saved Default valueFunction YesUsageeventlog.clear()DetailsThis command removes all events from the event log, including entries in the front-panel event log.Also seeeventlog.next() (on page 8-69)eventlog.save() (on page 8-71)Using the event log (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 valueFunction YesUsageeventlog.getcount()eventlog.getcount(eventType)eventType Limits the return to specific event log types; set a cumulative integer value thatrepresents 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 or3• Information only: eventlog.SEV_INFO or 4• Errors and information only: eventlog.SEV_INFO|eventlog.SEV_ERRORor 5• Warnings and information only:eventlog.SEV_INFO|eventlog.SEV_WARN or 6• All events: eventlog.SEV_ALL or 7DetailsA 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 orsince the event log was last cleared.Events are read automatically when localnode.showevents is enabled. You can also read themindividually with eventlog.next().