How Can I Modify System Time on IC-317x or cRIO-904x/905x

Updated Apr 18, 2024

Reported In

Hardware

  • IC-3171
  • IC-3172
  • IC-3173
  • cRIO-9041
  • cRIO-9042
  • cRIO-9043
  • cRIO-9045
  • cRIO-9046
  • cRIO-9047
  • cRIO-9048
  • cRIO-9049
  • cRIO-9052
  • cRIO-9053
  • cRIO-9054
  • cRIO-9055
  • cRIO-9056
  • cRIO-9057
  • cRIO-9058

Driver

  • NI-TimeSync
  • NI-Sync

Issue Details

I have NI-Sync (which now includes the driver formerly known as NI-TimeSync) installed on IC-317x or cRIO-904x/905x.  I am using the controller as an IEEE 1588 or IEEE 802.1AS master. I would like to adjust the time being distributed to my 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, or slaves do not update the time automatically.
How can I modify the system time of my controller such that this time can be used to synchronize my slaves?

Solution

The system time on the IC-317x and cRIO-904x/905x will by default be set by the onboard Ethernet controller when NI-Sync 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 the system time of your target by doing one of the following:
    • Run the date command in the terminal. If you want to keep the changes after rebooting the target, the hwclock -w command must be run after the date command.
    • 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