2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-73
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
When an event occurs on the instrument, it is placed in the event log. The
eventlog.next()
command retrieves an unread event from the event log. Once an event is read, it can no longer be
accessed remotely. However, it can be viewed on the front panel. When
localnode.showevents
is enabled, this command never returns an event because those events are automatically read and
sent to the remote interface.
To read multiple events, execute this command multiple times.
If there are no entries in the event log, the following is returned:
0
No error
0
0
0
0
If the event type is not defined, an event of any type is returned.
Example
print(eventlog.next(5))
Get the oldest error or information event from the event log.
Example output:
-285 TSP Syntax error at line 1: unexpected symbol near `0' 1 0 1367806152 652040060
Also see
(on page 14-71)
(on page 14-71)
(on page 3-50)