Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
10 ratings:
 3.89 out of 5     Rate this Document

How Do I Configure My 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.
  1. Download the Meinberg NTP Server found under the Related Links section.
  2. Run the installer.
  3. When prompted, choose to install all components and click Next.
  4. Do not select to create an initial configuration file in the Configuration File Settings and click Next.
  5. Under NTP Service Settings, select the radio button labeled Use SYSTEM account (not recommended), ensure that all boxes are checked, and click Next.
  6. Click the Finish button.
  7. When the installer is finished, verify that the NTP server is started by selecting Start»All Programs»Meinberg»Network Time Protocol»Service Control»Start NTP Service. If you recieve and Error 5 when trying to run the Start NTP Service file, try to right-click on it and select Run as administrator.
  8. Open Measurement & Automation Explorer and open the settings for your NI WSN-9791, NI 9792 or Smart Camera.
  9. Enter your host PC IP address to be used as the Time Server.
  10. Apply the settings and reboot the NI WSN-9791, NI 9792 or Smart Camera.
  11. For CompactRIO Controller's, you will need to modify the ini file to specify the correct Time Sync information. Refer to KnowledgeBase 493C8ELX: How Do I Configure My CompactRIO Real-Time Controllers to Synchronize to SNTP Servers? on how to set this up for CompactRIO
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 8.

Your NI hardware should now be able to pull time server information from your host computer.

Related Links:
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: 08/27/2015
Document ID: 4Z88FBHN

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit