NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
CyberSmith

Allow setting RT target system time using NTP time server with high accuracy

Status: New
by Member CyberSmith on ‎10-02-2011 05:48 PM

Many networks have NTP (network time protocol) time servers locked to a GPS signal with claimed accuracy of better than 1 millisecond. NTP seems to be the de facto standard for distributing accurate time to systems accross a network. I would like to see a VI that can use this widely available protocol to set the system time with as much accuracy as possible.  The RT Set Date and Time VI only permits specifying the time down to 1 second.

 

A forum contributor has provided a VI to read the NTP protocol, but uses the RT Set Date and Time VI to set the RT target system time losing any resolution beyond the second.  This VI eliminates the greater precision available using the NTP protocol.  The contributed VI also does not implement any of the advanced algorithms to improve the accuracy of using NTP over a network which are described at NTP.org and at links that may be found there. 

 

Very tight synchronization (millisecond or better) of many RT targets is possible when the NTP protocols are fully implemented.  I need accurate millisecond resolution on many RT targets over a wide (several thousand square miles) area.  These RT targets recieve their data streams via radio telemetry so signal propagation time over the area is essentially zero.  Processing of the data relies on the relative accuracy of time-tags generated at multiple sites.

 

 

Comments
by Active Participant Dan_Mondrik on ‎10-11-2011 09:03 AM

The new API that we have for configuring RT targets is NI System Configuration, and we actually have a way to set the time with sufficient precision to meet your needs. See this example VI I have attached.ChangeTime.vi.png

by Active Participant Jeremy_L on ‎10-12-2011 09:30 AM

One thing you can try is NI-TimeSync.  There is a version that supports SNTP on RT targets currently posted on NI Labs:

https://decibel.ni.com/content/projects/timesync-sntp-support

 

Using NI-TimeSync, you can synchronize the RT system time to an SNTP server through some fairly simple configuration settings, and I think it should hit the accuracy targets you want.  I would suggest trying this out and see if it fits your needs.

by Active Participant BlueCheese on ‎10-13-2011 08:01 PM

Also, I'll point out that IEEE-1588 is rapidly replacing NTP for continuous synchronization of various systems over a network where sub-ms accuracy is desired. NTP is really only designed for synchronization above those levels as it cannot account for jitter in network cards, switches, routers, etc. Most dedicated "time servers" which can get time from GPS and serve it to a network can serve up 1588 these days as well. NI offers 1588 solutions ranging from the software-only 1588 support in NI-TimeSync up to our PXI-668 and PCI-1588 which can get synchronization down to the order of tens of nanoseconds.

 

Eric

About LabVIEW Real-Time Idea Exchange

Have a LabVIEW Real-Time Idea?

  1. Does your idea apply to LabVIEW in general? Get the best feedback by posting it on the original LabVIEW Idea Exchange.
  2. Browse by label or search in the LabVIEW Real-Time Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  3. If your idea has not been submitted click New Idea to submit a product idea to the LabVIEW Real-Time Idea Exchange. Be sure to submit a separate post for each idea.
  4. Watch as the community gives your idea kudos and adds their input.
  5. As NI R&D considers the idea, they will change the idea status.
  6. Give kudos to other ideas that you would like to see in a future version of LabVIEW Real-Time!
Idea Statuses
Top Kudoed Authors
User Kudos Count
2
2
2
1
1
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page