14: TSP command reference 2470 High Voltage SourceMeter Instrument
14-72 2470-901-01 Rev. A / May 2019
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().
Example
print(eventlog.getcount(eventlog.SEV_INFO))
Displays the present number of unread
information messages in the instrument
event log.
If there are three information messages in
the event log, output is:
Also see
eventlog.clear() (on page 14-71)
eventlog.next() (on page 14-72)
localnode.showevents (on page 14-94)
Using the event log (on page 3-50)
eventlog.next()
This function returns the oldest unread event message from the event log.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
Usage
eventNumber, message, severity, nodeID, timeSeconds, timeNanoSeconds =
eventlog.next()
eventNumber, message, severity, nodeID, timeSeconds, timeNanoSeconds =
eventlog.next(eventType)
A description of the event
The severity of the event:
ï‚§ Error: 1
ï‚§ Warning: 2
ï‚§ Information:
The TSP-Link node where the event occurred or
0
if the event occurred on the local
node
The seconds portion of the time when the event occurred
The fractional seconds portion of the time when the event occurred