![Tektronix Keithley SourceMeter 2470 Reference Manual Download Page 729](http://html1.mh-extra.com/html/tektronix/keithley-sourcemeter-2470/keithley-sourcemeter-2470_reference-manual_1078034729.webp)
2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-89
localnode.gettime()
This function retrieves the instrument date and time.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
localnode.gettime()
Details
The time is returned in UTC time. UTC time is specified as the number of seconds since Jan 1, 1970,
UTC. You can use UTC time from a local time specification, or you can use UTC time from another
source (for example, your computer).
Example
print(os.date('%c', gettime()))
Example output:
Tue Dec 5 03:44:37 2017
Also see
(on page 14-93)
localnode.linefreq
This attribute contains the power line frequency setting that is used for NPLC calculations.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Power cycle
Not applicable
Not applicable
Usage
frequency
= localnode.linefreq
frequency
The detected line frequency: 50 or 60
Details
The instrument automatically detects the power line frequency when the instrument is powered on.
Power line frequency can be 50 Hz or 60 Hz.
Example
frequency = localnode.linefreq
print(frequency)
Reads the line frequency setting.
Also see
None