User manual

Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-229
ptp.syncinterval
Attribute
Defines the interval between synchronization messages from the master. This must be
set to the same value for all instruments participating in 1588 (for a given subdomain),
both master and slave.
Usage
ptp.syncinterval = [0,1,3,4,6]
0: 1 sec
1: 2 sec
3: 8 sec
4: 16 sec
6: 64 sec
Remarks
ptp.syncinterval does not take effect until 1588 is restarted (generally using a power
cycle).
Example
ptp.syncinterval=1
print(ptp.syncinterval)
ptp.time
Attribute
Read-only PTP time that returns seconds and fractionalseconds.
Usage
ptp.time
Example
sec,fraction=ptp.time()
print(sec+fraction)
ptp.utcoffset
Attribute
Current offset, in seconds, between UTC and PTP. If the instrument is a slave, this
value comes from the master (so setting the value will be overwritten on the next
synchronization). The Series 3700 does not keep track of this value through a power
cycle (that is, it defaults to 0 if the 3700 is the master).
Usage
ptp.utcoffset
Remarks
The Series 3700 is not time-zone aware, so UTC time will be presented as the local
time.
Details
UTC Time = PTP Time - UTC Offset
Example
ptp.utcoffset=33
print(ptp.utcoffset)