Time synchronization using SNTP

Hello all,
I my trying to set up SNTP synchronization of my cRIO to NTP server. To do that, I followed instructions in: http://digital.ni.com/public.nsf/allkb/F2B057C72B537EA2862572D100646D43
When I did reboot on my cRIO, time synchronization was successful. Then I changed the clock on cRIO manually to be 2 minutes ahead of that on NTP server. In this way I wanted to test the time synchronization, but nothing happened, i.e. after 30 minutes of waiting clock on the cRIO is still 2 minutes ahead (synchronization interval is set to 5 seconds).
My question is - if I set the clock on cRIO manually to be 2 minutes ahead, will it always be 2 minutes ahead, i.e. will it be synchronized like that? Or SNTP synchronization is not working well?
If synchronization is working well (i.e. it synchronizes 2 minutes ahead because of my manual intervention), how can I test that synchronization is working well during runtime?
Also, I've read somewhere that after synchronization fails to connect with SNTP server 5 times, it won't try ever again. Is this true, and if it is how can I change this?
Best,
Marko.

UPDATE:
I did a test with 2 cRIO devices. Both of them are configured to synchronize with NTP server, and they synchronized successfully on reboot. Then I manually changed times on both of them (not long after reboot), where I set the first cRIO to be 20 seconds ahead NTP server time, and the second cRIO to be 20 seconds behind NTP server time. After 12 hours of runtime, times on both cRIO devices are still 20 seconds ahead/behind NTP server time. Time synchronization update interval was set to 10 seconds on both of them.
Now I'm confued how time synchronization works on cRIO devices. As I see it, there are two possibilites: (i) clocks were synchronized on reboot, and shortly after that I manually changed the clocks to be 20 seconds ahead/behind NTP server time - maybe cRIO now "thinks" that this is normal situation, i.e. to be 20 seconds ahead/behind; or (ii) NTP time synchronization works only on reboot.
In another thread, I read that after 5 failed attemtps to connect to the NTP server, cRIO will quit trying. I'm not sure what does this mean. If it means that cRIO will never again try to connect to the NTP server, this is not good since there is no possibility to define a backup NTP server using ni-rt.ini configuration file. If it means that the cRIO will, at each update event (in my case every 10 seconds), try to connect up to 5 times then this is OK.
If I really have a problem with "automatic" time synchronization using NTP via ni-rt.ini configuration file, would you suggest that I do this synchronization programmatically? What is the expected time synchronization accuracy in this case? Another upside of this approach is possibility of defining backup NTP servers. There are few good threads explaining how to do this: https://decibel.ni.com/content/docs/DOC-36432 , https://decibel.ni.com/content/docs/DOC-26987
I'm sorry to have so much questions, but the documentation on NI TimeSync via SNTP is very poor. All I was able to find was this: http://digital.ni.com/public.nsf/allkb/F2B057C72B537EA2862572D100646D43
Best,
Marko.

Similar Messages

  • Time synchronization on client device

    Is there any functionality in OLite 10g R2 which can maintain time synchronization on client devices (WM5 PPCs)? Obviously we could use some special application for such purpose, but it would probably need some user interaction, which we'd like to avoid...

    Thanks for your post - I thought so :(
    I already have one working solution, but I don't like it at all, because it's too complicated for such trivial task. I created new OTL command, which takes an application executable filename as parameter and launches it on the device (this OTL script also has to be present on the device). Than I created simple SNTP client application and published it on the mobile server for client devices. Now I can schedule a device command which launches this application to perform time synchronization with some time server on regular basis.

  • Time synchronization problem with "niUSRP EX Rx Multiple Synchronized Inputs.v i " ??

    Hello,  
    I used "niUSRP EX Rx Multiple Synchronized Inputs.vi "( offred by NI) to synchronize 2 USRP in reception (the master connected to laptop via Ethernet and the slave connected to the master via MIMO cable). 
    I set: master--> RefIn and PpsIn     slave-->Mimo and Mimo. 
    Problem: Inspite I used identical cables that connect the both devices to the transmitter; the signal received by the master and the signal received by the slave ar'nt synchronized in time because the time lag (delay) is not constant!!!. 
    Where is the problem?!!  
    Thank you

    Hi,
    I used:
    transmitter--> Rohde & Shwartz SM300 signal generator.
    Receivers-->  2 x USRP N200 (connected with MIMO cable)  master--> RefIn and PpsIn     slave-->Mimo and Mimo.
    3 identical cables to transmit the signal, connected via Power Splitter/Combiner (Mini-Circuits).
    Cable 10MHz connects the master device with the transmitter.
     FreqTx=700MHz  (sin)           CarrierFreqRx=701MHz  --------> so the received signals are a sin of 1MHz (701-700=1MHz).
    I have no probleme with phase synchronisation (because both the slave and the master received a sin of 1MHz).
    My problem is the time synchronization:
    How can I verify if i did the  time synchronization?
    I must have 2 superposed sin [(ch0 I with ch1 I) (ch0 Q with ch1Q)] ?
    I must do Timed commands? if yes! How to do it?
    I try to run the example of constellation, then i have message: Find VI Named".........Vi"    I have this problem all the time when I run some examples . I have probleme with setup LabView?!
    Best regards

  • Time Synchroniz​ation, Lookout 6.2

    We recently installed 6.2 on several new machines, and one of the machines is experiencing issues with time synchronization.  I have no time servers set up using the Time Synchronization Dialog, and the Lookout System Time (lower left corner) is unstable, and different from the Windows system clock.  The Lookout time will sometimes fall two minutes behind the windows system clock, and then "update" to the correct time and immediately start lagging behind the system clock.  Even though I have time servers set up, changing the "Sleep Time" in the Time Sync dialog affects the behavior of the lookout system time.  I've tried add the local machine as the time server, and another computer running 6.2 as the time server, but this does not correct the issue.  The lookout system time may change 2 seconds in 20 seconds, which makes all of our timers useless.  Again, we're only experiencing this issue on on computer, and I've unistalled the software, all the way down to the WinXP OS, reinstalled, and the same behavior returns after the Lookout process is opened and run for about 5 minutes. 
    It appears as though there may be a time server set somewhere that is not showing in the time sync dialog.  Is there a location in the registry where the time server might be shown?  Any other suggestions will be most appreciated.
    One last thing, once lookout is started, if I stop the NI Time Sync service, the lookout time matches the local comptuer time perfectly.  I thought about disabling this service, but Lookout won't start without it.  I have to stop it once Lookout is started,  and I have a continuous alarm alerting that the service has been stopped.
    Again, I'll appreciate any suggestions. 
    Jeff Miller
    USACE

    Hi Jeff, I am wondering if you found a solution to your issue. I have just replaced a PC running Lookout Client 6.2 (power supply died) and this machine is experiencing the same issue you describe (lookout time running wild)
    This of course, causes the hyper trends to not 'sync/display'.

  • How to reduce Oracle Cluster Time Synchronization time to 0

    Hi Guys,
    How to reduce Offset (in msec) of Oracle Cluster Time Synchronization time to 0 ???
    is there any command or is it the only solution to wait to become 0 slowly...
    [root@caslive bin]# ./crsctl check ctss
    CRS-4701: The Cluster Time Synchronization Service is in Active mode.
    CRS-4702: Offset (in msec): -1300
    regards,
    manish
    Email ID: [email protected]

    Hi,
    1.From DB02--> detail analysis menu you can take out top 50 tables & indexes. you can mark the size of the index should be generally less than the table.If its more or very much similar size of table, you can rebuild it using SE14. This can free some space.
    or else you may use brspace to do this.
    http://help.sap.com/saphelp_nw70/helpdata/EN/58/6bec38c9fa7e44b7f2163905863575/frameset.htm
    In case of table this option is risky as it may result in data loss.
    2. Earlywatch alert gives the top 20 degenrated index. you can check that which also gives a factor 'storage quality'.
    3. Run report SAP_DROP_TMPTABLES. It removes temporary database objects. ( we do this in our BW system)
    Hope this helps
    Thanks
    Sushil

  • Time synchronization across nodes

    Does coherence perform time synchronization across nodes in a cluster?
    If so, does the synchronization affect time in the node's JVM?
    We have a few machines in the cluster whose system clocks are off by several minutes (slow) and noticed entries in the member's logs with timestamps in the future!?

    Hi John,
    Coherence does not perform any clock synchronization though it is aware of the clock differences and factors it into some of the time based operations.
    However, the timestamps for log messages always use the local time (System.currentTimeMillis()), so unless you have a time service that corrects the system clock, all log messages should ordered by the time stamp.
    Regards,
    Gene

  • Time Synchronization two PCs having LabVIEW's DSC

    I have two PCs which have LabVIEW's DSC Run-Time System installed on them. They are connected on the LAN. The approximate distance between the two PCs is about 6 KM, i.e., it passes through many repeaters and network switches. Both fiber optic and normal network cable is used. The LAN speed is 10Mbps.
    LVDSC Runtime System has an option of time synchronizing two or more PCs which are registered.
    What is the accuracy of time synchronization ?
    Does the accuracy fall if the distance between the PCs on the LAN increases, i.e., the LAN speed could be slow at times due to net congestion ?
    Does the time synchronization take place to the accuracy of "seconds" or "milli seconds" ?
    Thanks

    Hi,
    The time synchronization service that ships with LabVIEW DSC is accurate to +-10 milliseconds in ideal conditions (two PCs on a LAN located on the same floor of the same building). The time synchronization service will attempt to compensate for any latency between the servers, but some accuracy will be lost. Accuracy should never be worse than +-1 second, and should be much better than that except in very high-latency situations.
    Sincerely,
    J.D. Robertson
    Software Engineer
    National Instruments

  • Time synchronization poorness caused to block connection

    Dear Microsotf,
    I have VDS windows 2008r2 + Sql Server 2008 Express Ed. I am running MuOnline Private server (online gaming). But my OS system time is delaying (7 Secounds Delaying every 15 minutes) Time is cyritical for online games. problem
    was defined after lots of tests as a processor clock problem... which was time-running slower than expected to do (about -1 minute for every regular hour, checked with atomic clock)... and that for MultiPlayer games is crucial. 
    In the Gameserver.exe i got that log .;
    Time synchronization poorness caused to block connection -7828
    WSARecv() failed with error 10038
    What will the solution?

    Simply use a public NTP server for time sync.
    You can refer to that to how to configure time sync on your server: https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vsphere.security.doc%2FGUID-B77341E3-9D7D-48B6-A221-B782C21AF98E.html
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • SbRIo time sync with SNTP server

    Hi!
    I'm syncronizing a sbRIo with a time server as described here:
    http://digital.ni.com/public.nsf/allkb/F2B057C72B537EA2862572D100646D43?OpenDocument
    I've a couple of questions:
    1) what happens if the time server becomes unreachable?
    2) can source.sntp.address be specified as a name address to be rosolved by a DNS? (It seems to me that if the name can't be resolved the board boots in safe mode...)
    thanks in advance for any reply,
    Marco
    p.s. sorry for cross-posting (http://forums.ni.com/t5/Real-Time-Measurement-and/sbRIo-time-sync-with-SNTP-server/m-p/1951123),
    but the problem is quite urgent...
    Solved!
    Go to Solution.

    Hi Marco,
    1) If the SNTP time server becomes unreachable, the cRio will update the local time independently, starting from the last time value get from the server
    2) You are right, it doesn't work properly. The right way to express the SNTP source is using IP address
    Regards,
    Andrea R.

  • We want Cluster time synchronization service to point out time server

    Currently we are using Cluster time synchronization service in our 11gr2 RAC test system, But for production system our Admin wants the system to get its time from our time servers, he wants all the servers in the company to have same time.we can fix this by using NTP service instead of Cluster time synchronization service .But Cluster time synchronization service has more advantages over NTP.
    My Question, Is there any way that i make my Cluster time synchronization service to get time from our time servers ? In this way all my other nodes will also have same time as our time servers as they are referencing to first node, which is getting time from TIME SERVER

    Hi ,
    My Question, Is there any way that i make my Cluster time synchronization service to get time from our time servers ? In this way all my other nodes will also have same time as our time servers as they are referencing to first node, which is getting time from TIME SERVER
    This is not possible
    If you use NTP, then the Oracle Cluster Time Synchronization daemon (ctssd) starts up in observer mode.
    For CTSS to be in active mode, a vendor time service must not be running, and must not be configured (correctly or otherwise).
    This is important.
    CTSS is conservative and will switch to OBSERVER mode the moment it discovers that a vendor service is running or configured on even one node in the cluster.
    This is to prevent multiple active time sync services running on the cluster, potentially changing clocks.
    Regards,
    Levi Pereira
    <font size="1" color="red">Please close your thread when you get the solution to your problem.</font><br>
    <font size="1" color="red">Mark the replies answered "helpful" answer and/or "correct" answer that will help others with same problem.</font><br>
    <font size="1" color="red">Thanks for doing your part to make this community as valuable as possible for everyone!</font><br>

  • Why is there a problem with Itunes freezing up at least 1-2 times when using it?

    It is kind of getting old but my Itunes player (does not matter which one as I update to the latest version) has this nasty habit of freezing whether I am trying to listen to the radio or my own library.
    It is now happening almost every time I use Itunes and when it freezes the only fix is to do the old Control-Alt-Delete.
    I am running a 64 bit Window's 7 home premium and prefer using Itunes but you know if you does not work get something else
    I have 4 GBs Ram with a 2.6 Dual Core Pentium
    More frustrating is the lack of support from Apple. Oh wait Itunes is for free so you do not get help.
    Even better is a troubleshooting aid that when you click NO it did not help then the window itself just disappears
    Yes I checked and it is a system problem but it is a problem that has existed since Itunes put out their 10 series.
    Given the number of times this question is being asked by others then is it too much to think that Apple realizes that they have a problem application and it is not the fault of the user or Microsoft OS.
    No offense Apple but I know if 10% have a problem that it does not matter to you but why should I spend money on any of your products if you can not come out with a fix for your own medial player?

    Do not use Clear Recent History to clear the "Site Preferences"
    * https://support.mozilla.com/kb/Clear+Recent+History
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.

  • Before every time I use to open a new tab it comes as top site. Now not anymore and instead is an automatically website calle Only Search. I went to Safari preference I change everything and when I quit Safari all the changes are gone.

    Every time I used to open a new tab it comes as top site. Now not anymore , instead it open in a website called Only Search, I went to safari preferences and made all changes but after I quit Safari and open again all changes are gone. I can not change anything and new tab comes by it self with other website.

    There is no need to download anything to solve this problem.
    You may have installed the "Downlite" or "VSearch" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the support article, you may also need to remove this item in the same way:
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This malware is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.

  • How to configure time synchronization for two NTP servers

    We have IOSXR 4.2.1 on routers CRS3 and ASR9K with all recomended SMUs; we need to configure the time synchronization for two NTP servers with the configuration below, but the routers became unstable; synchronize with one NTP servers for some time, then switch to other NTP server, and keep doing this. Anyone know why this behavior?
    ntp
    authentication-key 1 md5 encrypted 01070F074F0A05
    authenticate
    trusted-key 1
    server 10.192.32.32 prefer
    server 10.192.32.33
    source Loopback50
    update-calendar
    RP/0/RP0/CPU0:DFCRSDTC1#sh log | i ntp
    Wed Jul 10 09:37:04.621 BRSPO
    RP/0/RP0/CPU0:Jul  4 21:29:18 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.32 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:29:18 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->15.
    RP/0/RP0/CPU0:Jul  4 21:29:18 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.
    RP/0/RP0/CPU0:Jul  4 21:29:27 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 15->2.
    RP/0/RP0/CPU0:Jul  4 21:30:21 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.32 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:30:21 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->15.
    RP/0/RP0/CPU0:Jul  4 21:30:21 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.
    RP/0/RP0/CPU0:Jul  4 21:31:36 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 15->2.
    RP/0/RP0/CPU0:Jul  4 21:35:56 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:35:56 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->15.
    RP/0/RP0/CPU0:Jul  4 21:35:56 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.
    RP/0/RP0/CPU0:Jul  4 21:40:11 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 15->2.
    RP/0/RP0/CPU0:Jul  4 21:50:52 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : System clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:50:52 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->6.
    RP/0/RP0/CPU0:Jul  4 21:59:26 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 6->2.
    RP/0/RP0/CPU0:Jul  4 22:25:07 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : System clock selection failed
    RP/0/RP0/CPU0:Jul  4 22:25:07 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->6.
    RP/0/RP0/CPU0:Jul  4 22:56:16 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 22:56:16 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.

    Hi Claudio, that ddts is pretty generic to be honest but yes it is filed to address sync issues in the XR NTP algo.
    The thing is that XR ntp clock selection is a bit different then iOS and follows the specs very closely which results in this erroneous loss behavior.
    For instance, you could also see this issue with a sync loss if the update time is only 500msec off what it was before and that will result in a ntp sync loss rather then adjusting to it.
    Also I wanted to mention that the ntp prefer is a bit of a misnomer in XR (since it follows the specs differently then IOS) and this knob was taken over from IOS really.
    You might get some joy if you set it to one server only and see if that helps?
    regards
    xander

  • I recently bought two iMac quad core i5 processor speed 2.5 Ghz. Every time I use Air Drop and I send a file from one iMac to the other, a black curtain drops and I am asked to restart the computer!!! What can I do?

    I recently bought two iMac quad core i5 processor speed 2.5 Ghz. Every time I use Air Drop and I send a file from one iMac to the other, a black curtain drops and I am asked to restart the computer!!! What can I do?

    That's a kernel panic and indicates some sort of problem either with the computer's hardware or software. Visit The XLab FAQs and read the FAQ on diagnosing kernel panics. It would help to post the panic log: Mac OS X- How to log a kernel panic.
    Meanwhile, try booting the computers into Safe Mode then restarting normally. If this is simply a disk repair or cache file problem then this may fix it.
    You can also try creating a new admin account on each computer then booting into the new account. This would help determine if the problem is related to a bad file in the user accounts.

  • I have 2 auxillary disk drives for my MacBokk Pro. Time Machine uses one for backup and I use the other for storage, but I am unable to create a new folder or drag and drop files or folders to the aux drive.

    I am unable to create a new folder on either of my auxillary disk drives.  I can access the files and folders that were there when I transferred one of the drives from a PC.  Time machine uses one for backup and I want to use the other to store photos which are large files.  An help would be appreciated.

    Thanks for the reply.  If I reformat the drive will I be able to access the files on it from the MAC.  I do not share the drive with a PC.  The files were originally created on a PC which I no longer use.  I do want to continue to access the files put there by the PC.  I would like to not have to copy them over to the MAC hard drive just to use them.  The second aux drive is new and works fine because it was formatted by the MAC.  I can drag and drop files there and work with just as if they were on the internal drive.

Maybe you are looking for

  • Connecting iMac to TV

    I have a 24" aluminum iMac with a miniDP, trying to connect it to a 20" TV that has S-video, composite, and component inputs. Here's the TV: http://reviews.cnet.com/flat-panel-tvs/sylvania-6620ldt-20-lcd/4505-6482_7-32157 042.html Which input would b

  • Getting error in Mozilla, reading xml using JavaScript

    Hi All, I am working with javascript with xml, getting error in Mozilla 1. see html and xml file and check xml file path before test --- 2. please, go through the html and xml file. read_xml.html ================= <html> <head> <title>xml file using

  • I am unable to see business systems in ID

    Hi Experts, I have created Technical and business systems in SLD, I have done mapping every thing working fine but when go to integration directory i am unable assign business systems, i didn't find my busuiness systems in ID. Can u please tell me wh

  • Slideshow  with individual timing for each photo just does NOT work!

    i am in slideshow mode with all the jpegs on top i go to settings it has DEFAULT settings for the entire slideshow it does not say each photo gets its own timing. the arrows for the transition direction are greyed out am i the only one who cant get t

  • Reg : FRM-40733 Pl/Sql Built-In DBMS_ERROR_CODE Failed

    Hi Gurus, We are getting the following error randomly on users machine. "FRM-40733 Pl/Sql Built-In DBMS_ERROR_CODE Failed" I serched for this error in google but cant find any solution for this error. Can anyone suggest me a solution for this problem