08-18-2010 09:20 AM
I would like to sync my windows system time to my RT clock (which is set by GPS using IEEE1588) I do not want to simply overwrite the existing windows time. Instead I would
prefer to servo the system time by speeding it up/down until the time error is zero. Does anyone have any LV code to manipulate the windows clock in such a manner?
Thanks
08-19-2010 01:20 PM
Sachsm,
Have you seen the NI TimeSync software? I believe you can sync your windows system to a time clock off of you RT GPS Time. I'll have to look into this a little bit more but this may be good place to start.
Timing and Synchronization in NI LabVIEW - Developer Zone
http://zone.ni.com/devzone/cda/tut/p/id/11466
NI-TimeSync 1.0.1 - Real-Time OS, Windows XP x86/Vista/7
http://joule.ni.com/nidu/cds/view/p/id/2083/lang/en
Also, here is another similar example.
IEEE 1588 Pulse Per Second (PPS) Synchronization Reference Example for LabVIEW RT and Windows - Developer Zone
http://zone.ni.com/devzone/cda/epd/p/id/5987
Best,
Chris LS
08-19-2010 01:56 PM
My cRIO is already running the timesync software to discipline its clock to the PXI6682 1588 master on the network. The problem is that
even thought the PXI 6682 is running on a windows machine, the windows system clock is not sync'd to the 1588 timestamp. For some reason
there is no windows 1588 client software stack available. Windows has its own time server that can be sync'd to any NTP server on the network, but in my
case this is a closed network without any NTP time servers. It does not appear that the cRIO timesync can be configured as a NTP server so I am now
thinking about how to roll my own PID servo adjustment of the windows system time.