From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clock drift on a 8820 PXI controller

I'm using a  PXI 8820 controller running Windows 7. After a reset of the clock, the controller time is increasingly shifting : 2 mins after 24 hours, 6 mins after 2 days, 12 mins after 3 days, and so on. After one week the clock is one hour late. This situation is unacceptable, since the time stamps of the measurements done by my LabVIEW application are false, and can't be associated with events recorded by other computers.

Surprizingly, timed loops in LabVIEW are still perfectly accurate : a 60000 ms loop takes effectively 1 min, while the controler clock displays proudly 59 seconds (after a 2 days run)... Smiley Very HappySmiley Sad

I wrote a small vi which calculate simply the time difference between two successive readings of the controler clock, using the get Date/Time in seconds function of LabVIEW, in a 1000 ms timed loop. The attached picture shows that while most loops run on average 1 sec, sometimes (here 1 time per min) a second is lacking, as if the clock was remaining blocked. The frequency of these events increases progressively, which explains the drift acceleration.

 

Décalage horloge 2.png

 

The problem seems to be PXI 8820 related, and clearly it is not a LabVIEW problem, since the clock is shifting even when no LabVIEW application is running. The PXI is not old (3 months of continuous use).

 

Any idea to help me locate the problem ?

 

And to all my old frieds here on this great forum... yes... I'm lucky enough to be still alive and well Smiley Wink

Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
0 Kudos
Message 1 of 2
(2,237 Views)

Can you post the VI?

 

Is windows time synchronisation on?

 

In general when you want to syncronise multiple targets, SNTP is a good idea (Meinberg NTP Software works as a local STNP server). The difference between the timed loop and the time is that the first could be based on processor cycles, while the second reads out the PC's clock. So if the processor is 2% off, the timed loop will still be running exactly 60000 ms, while the clock could have been changed by windows (or a user).

 

It is weird that the shift is increasing, so each day is one minute shorter then the previous. It almost seems like some correction is correcting the wrong way... If so, it must be windows.

0 Kudos
Message 2 of 2
(2,191 Views)