Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-94
2470-901-01 Rev. A /
May
2019
Example 2
systemTime = os.time({year = 2018,
month = 3,
day = 31,
hour = 14,
min = 25})
localnode.settime(systemTime)
print(os.date('%c', gettime()))
Sets the date and time to Mar 31, 2018 at
2:25 pm.
Output:
Sat Mar 31 14:25:00 2018
Also see
(on page 14-89)
localnode.showevents
This attribute sets whether or not the instrument automatically outputs generated events to the remote interface.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
No
Power cycle
Not saved
0 (no events sent)
Usage
errorMode
= localnode.showevents
localnode.showevents =
errorMode
errorMode
The errors that are returned:
No events:
0
Errors only:
1
(
eventlog.SEV_ERROR
)
Warnings only:
2
(
eventlog.SEV_WARN
)
Errors and warnings:
3
(
eventlog.SEV_ERROR|
eventlog.SEV_WARN
)
Information only:
4
(
eventlog.SEV_INFO
)
Information and errors:
5
(
eventlog.SEV_INFO
|
eventlog.SEV_ERROR
)
Warnings and information:
6
(
eventlog.SEV_INFO|eventlog.SEV_WARN
)
All events:
7
(
eventlog.SEV_ALL
)
Details
Enable this attribute to have the instrument output generated events to the remote interface.
Events are output after a command message is executed but before prompts are issued (if prompts
are enabled with
localnode.prompts
).
If this attribute is disabled, use
eventlog.next()
to retrieve unread events from the event log.
Events are enabled or disabled only for the remote interface that is active when you send the
command. For example, if you enable show events when the GPIB connection is active, they will not
be enabled for a subsequent USB connection.