8: TSP command reference Model 2461 Interactive SourceMeter® Instrument Reference Manua
8-84 2461-901-01 A/November 2015
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:
Wed Mar 31 14:25:31 2010
Also see
localnode.settime() (on page 8-87)
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 (either 50 Hz or 60 Hz) when the
instrument is powered on.
Example
frequency = localnode.linefreq
print(frequency)
Reads line frequency setting.
Also see
None