How Can I Modify System Time on My IC-317x When NI-TimeSync Is Installed?

Updated Apr 20, 2020

Reported In

Hardware

  • IC-3171
  • IC-3172
  • IC-3173

Driver

  • NI-TimeSync

Issue Details

I have NI-TimeSync installed on my IC-317x, and I am using the controller as an IEEE 1588 master. I would like to adjust the time being distributed to my 1588 slaves, but I notice that when I try to set the system time either through NI MAX or the Set Time VI in LabVIEW, the time gets immediately overwritten. How can I modify the system time of my controller such that this time can be used to synchronize my 1588 slaves?

Solution

The system time on the IC-317x will by default be set by the onboard Ethernet controller when NI-TimeSync is installed. In order to allow manual changes to the system time, you will need to perform the following steps:
  1. Open a terminal session with the Linux RT target. For more information on how to do this, see How Do I Access the Shell on a NI Linux Real-Time OS Device?
  2. Stop the NI-TimeSync service on the target by running the following command from the Linux RT terminal:
    /etc/init.d/nitsmd stop
  3. Modify system time of your target by doing one of the following:
    • Run the date command in the terminal.
    • Modify the Time Settings tab in NI MAX.
    • Use the Set Time VI in LabVIEW.
  4. Restart the NI-TimeSync service on the target by running the following command from the Linux RT terminal:
    /etc/init.d/nitsmd start

Additional Information

You will need to perform these steps each time you would like to update system time.