Localnode.gettime(); Localnode.linefreq - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual

localnode.gettime()

This function retrieves the instrument date and time.
Type
TSP-Link accessible
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()))
Also see
localnode.settime()

localnode.linefreq

This attribute contains the power line frequency setting that is used for NPLC calculations.
Type
TSP-Link accessible
Attribute (R)
Yes
Usage
frequency = localnode.linefreq
frequency
Details
The instrument automatically detects the power line frequency (either 50 Hz or 60 Hz) at each power-up. This
detected line frequency is used for aperture (NPLC) calculations.
If you are using this command from a remote node, replace localnode with the node reference, for example,
node[5].linefreq.
Example
frequency = localnode.linefreq
print(frequency)
Also see
None
2450-901-01 Rev. B/September 2013
Affected by
(on page 8-72)
Affected by
Power cycle
The detected line frequency: 50 or 60
Section 8: TSP command reference
Where saved
Default value
Example output:
Wed Mar 31 14:25:31 2010
Where saved
Default value
Not applicable
Not applicable
Reads line frequency setting.
8-69

Advertisement

Table of Contents
loading

Table of Contents