Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
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:
3
Also see
(on page 14-71)
(on page 14-94)
(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
)
eventNumber
The event number
message
A description of the event
severity
The severity of the event:
Error:
1
Warning:
2
Information:
4
nodeID
The TSP-Link node where the event occurred or
0
if the event occurred on the local
node
timeSeconds
The seconds portion of the time when the event occurred
timeNanoSeconds
The fractional seconds portion of the time when the event occurred