Synchronise Phar Lap RT PXI to the NTP Time Server

Updated Feb 15, 2018

Reported In

Driver

  • NI-TimeSync 17.0
  • NI-TimeSync 17.5
  • NI-TimeSync

Operating System

  • PharLap

Issue Details

I need to synchronise the Phar Lap RT PXI system time with an NTP time-server that is on the same network as the RT system. 

I would like to set the RT system time to that of the NTP time-server when the RT system starts up. 

I was hoping that installing NI-Timesync on the RT system would achieve that, but it did not. 

Solution

Download and install on your PC the following: Note: SNTP Plugin not found on later versions of NI-TimeSync than NI-TimeSync 1.2.

Next, add/install the following software to the RT PXI:
  • NI-TimeSync 17.1 or later 
  • NI-TimeSync Plugin for SNTP 1.2
  • NI-TimeSync Time Reference for IEEE 1588

In order to install the NI-TimeSync Plugin for SNTP 1.2, you would need to download and install NI-TimeSync 1.2 (as mentioned above). 

At this point you should be able to configure the SNTP sync from NI MAX. Make sure that SNTP is Enabled, maybe Disable PTP (if PTP is installed too).
 
The last step that you would need to do is to change the NI-RT.INI and ni-timesync-sntp.ini files from the RT. 
To access them, you would need to open File Explorer and search for: ftp://0.0.0.0/, where 0.0.0.0 is the IP address of your RT PXI. 

Add to the NI-RT.INI:
[TIME SYNC]
source_priority = sntp;rtc;
source.sntp.enable = True
source.sntp.address = 0.0.0.0 
Where 0.0.0.0 is the NTP server IP address in this case. 

Add to the ni-timesync-sntp.ini:
[TIME SYNC]
source.sntp.address= 0.0.0.0

Where 0.0.0.0 is again the NTP server IP address in this case.


Important Note: Do not change anything else in the INI files. 

Additional Information

For details about adding/removing software from a Real-Time target please click here
 

WAS THIS ARTICLE HELPFUL?

Not Helpful