Eventlog.post() - Keithley 2461 Reference Manual

1kw pulse mode interactive sourcemeter instrument
Table of Contents

Advertisement

Section 8: TSP command reference
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
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
eventlog.clear()
eventlog.getcount()
eventlog.save()
Using the event log

eventlog.post()

This function allows you to post your own text to the event log.
Type
TSP-Link accessible
Function
Yes
Usage
eventlog.post(message)
eventlog.post(message, eventType)
message
eventType
8-70
0
0
0
(on page 8-68)
(on page 8-68)
(on page 8-71)
(on page 2-142)
Affected by
String that contains the message
The type of event; if no event is defined, defaults to eventlog.SEV_INFO:
Error: eventlog.SEV_ERROR or 1
Warning: eventlog.SEV_WARN or 2
Information: eventlog.SEV_INFO or 4
Model 2461 Interactive SourceMeter® Instrument Reference Manual
0
Where saved
Default value
2461-901-01 A/November 2015

Advertisement

Table of Contents
loading

Table of Contents