Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-307
ptp.time()
This function is a read-only string that returns the PTP time in seconds and fractional seconds.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
ptp.time()
Example
sec,fraction=ptp.time()
print(sec+fraction)
Output:
1.30609
Also see
Not applicable
ptp.utcoffset
This attribute describes the offset, in seconds, between UTC and PTP.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
See Details
Nonvolatile memory
See
Details
Usage
value
= ptp.utcoffset
ptp.utcoffset =
value
value
The offset in seconds
Details
If the instrument is a subordinate, the
ptp.utcoffset
value is from the master. If the value is from
the master, the setting is overwritten on the next synchronization. The Series 3700A does not keep
track of this value through a power cycle (that is, it defaults to 0 if the 3700 is the master). The
ptp.utcoffset
is only non-zero if the Series 3700A communicates to a master clock that is aware
of the difference between PTP and UTC time.
You can only write to this command if the Series 3700A is the master. If the Series 3700A is not the
master, an error is generated when you try to write to the Series 3700A.
The Series 3700A is not time-zone aware, so UTC time is presented as the local time.
UTC Time = PTP Time
– UTC Offset
Example
ptp.utcoffset=33
print(ptp.utcoffset)
Sets the UTC offset to 33 seconds.
Output:
3.30001
Also see
Not applicable