14: TSP command reference 2470 High Voltage SourceMeter Instrument
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
localnode.gettime() (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
Usage
errorMode = localnode.showevents
localnode.showevents = 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:
(
)
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.