High Voltage SourceMeter Instrument Reference Manual Section 14:
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
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
localnode.settime() (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
Usage
frequency = localnode.linefreq
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