How Do I Configure My Windows Host Computer as an NTP Time Server?
Primary Software: Driver Software>>NI-WSN
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Wireless Sensor Network>>WSN Gateways>>NI WSN-9791
I need my NI WSN-9791, NI 9792, Smart Camera, or CompactRIO controller to return the current time but I have no connection to a public Network Time Protocol (NTP) time server. How can I configure my host computer to act as a time server?
The default Windows time server (w32time) does not work for most NI distributed hardware because it is based on version 3 of the NTP standard but the hardware requires RFC 2030 - Simple Network Time Protocol (SNTP) version 4. In order for your host computer to provide the proper time server commands, you must upgrade the NTP service. There is an open standard that you can download and install per the instructions below for computers with a Windows Operating System.
Note: You may need to configure your firewall to allow inbound and outbound access to
Configuring NI WSN-9791, NI 9792 or Smart Cameras as NTP Clients
Configuring CompactRIOs as NTP Clients
Modify the (S)NTP configuration file used by your implementation for NTP. Below are a few examples:
If your host computer uses Linux, install the NTP package from the package manager of your choice and follow the above instructions starting at step 11.
Your NI hardware should now be able to pull time server information from your host computer.
Meinberg NTP Software Downloads
KnowledgeBase 4XKA7THN: How Do I Configure My Time Server on the NI WSN-9791 or NI 9792 Gateway?
KnowledgeBase 493C8ELX: How Do I Configure My CompactRIO Real-Time Controllers to Synchronize to SNTP Servers?
External Link: RFC 2030 - Simple Network Time Protocol Version 4
External Link: Setting up NTP on Windows
NI Community: Installing and Configuring NTP on NI Linux Real-Time Devices
Report Date: 07/09/2009
Last Updated: 04/01/2016
Document ID: 4Z88FBHN