08-02-2010 06:40 PM
The codes works fine. Set the version to 3 and mode to 3 to match with the server, and remove the Optional key identifier field to make data packet 56 bytes. Thanks,
06-07-2013 02:09 AM
Here is an ntp client that works in Labview 2012
06-07-2013 02:48 PM
Just so this gets out there, there is a plugin for a simple NTP implementation that works on cRIO. In my testing, I saw it keep the device synchronized within 10ms of one of the NIST servers. It runs in the background and is easy to configure.
https://decibel.ni.com/content/docs/DOC-14480
Also, I suspect the NIST servers do not respond to any NTP packets that were not sent from port 123. At least that was my experience, and why I could get some examples to work on the cRIO but not on my pc.
07-14-2015 10:40 AM
Hey,
I´ve tryed to implement the NTP Query VI as shown above.. there is a things I am struggeling with..
The thing is, the UDP read block is delivering an error 56.. my first guess was the server which i´m using does not respond, but i am was able to ping the server successfully, so there has to be some other mistake within the programm.
It would be great if someone is able to help me.
Tanks
07-14-2015 10:52 AM - edited 07-14-2015 11:37 AM
What's the purpose of the while loop?
Being able to ping a target does not say anything about a running NTP server.
What is the server IP you are using?
Does it work if you use my code unchanged?
07-15-2015 01:44 AM
Thanks for the fast reply!
The programm works now, after:
The only thing that does not work so far is to use another server. For now i am using the IP-Address from your progamm, but if i try any NTP-Server of these Lists i am getting error 56....
I am really thankful for your help!
07-15-2015 10:21 AM
Well, the format of the key identifier is irrelevant, but the datatype matters.
I don't know if the german NTP servers have any restrictions. Also make sure that the address entry does not contain any extra characters, such as linefeeds, etc. Make sure the entry field is set to "limit to single line").
07-15-2015 11:32 AM - edited 07-15-2015 01:05 PM
Yes, some servers work, some don't.
You migh also want to ask around if your company or institute offers a local NTP server. (For example UCLA here runs it's own).
07-16-2015 02:32 AM
Yeah for the final impelemtation it is planed to sychronize the System Clock over a local NTP-Server, but for some test a extern server is also fine.
Tanks again for your help!