I set Network Time Protocol(NTP) on my CompactRIO controller with Linux Real-Time OS to synchronize system time following this link, Synchronize Linux Real Time Targets with Network Time Protocol (NTP) Server.
It seems to work that the system time of cRIO chases the time of host server.Is there a way to monitor NTP connection status? How can I confirm that the NTP network is connected well?
You can check NTP connection by typing the following command line on PuTTY:ntpq -p or ntpq -pnPlease refer to this link how to use PuTTY. Accessing the Shell on NI Linux Real-Time DevicesIt shows the billboard of NTP servers connected with the target. You can see the list of NTP server's name or IP address that you configured in ntp.conf file in the target.The symbol in front of the server name indicates the status.The following table shows the description of indicators:
If there is "*" symbol in front of the server like below capture, your target is synchronized on that time server.
But when the server is not connected, there is a blank symbol and st(stratum) value is 16.
Note : After you restart cRIO or restart NTP daemon by commanding /etc/init.d/ntpd restart, it takes about 5 minutes to connect to NTP server. You will see the symbols change to "*", "+" etc and st values in a few minutes.
If the symbol is still blank and the value of st is still 16, then you can check below :
restrict <Client IP address> mask 255.255.255.0 nomodify notrapNote: If you use Meinberg NTP Software in host PC, you can find this file at the location below:
Start » Meinberg » Network time protocol » Edit NTP Configuration.
Here is the link about Meinberg NTP daemon, How Do I Configure My Host Computer as an NTP Time Server?After editing and saving ntp.conf file, you have to restart daemon to update that configuration.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.