How Can I Change My NI Linux Real-Time Target Timezone?

Updated Jun 12, 2018

Reported In

Hardware

  • cRIO-9068
  • cRIO-9063

Software

  • LabVIEW Real-Time Module

Operating System

  • Linux
  • NI Linux Real-Time

Issue Details

I am trying to change my NI Linux Real-Time device timezone according to the steps found here.
However the timezone of the device that I see from MAX in the Time Settings tab is not aligned with the one I set in LabVIEW through the VI Set Time of the System Configuration Palette.
What are the steps to follow in order to change the timezone of my device?

Solution

In order to change a NI Linux Real-Time controller timezone you have to access to the device shell.
In order to do this, access the shell of your device following this steps and follow these instructions:
  1. cd /etc to move to the "etc" folder
  2. rm localtime for deleting the localtime file containing information about the current timezone 
  3. ln -s /usr/share/zoneinfo/Europe/Rome localtime to set the desired timezone (in this case the Rome timezone)
The list of the possible timezones is contained in the path  /usr/share/zoneinfo/​

You may need to press the Refresh button on NI MAX to display the new timezone



You can verify that the timezone shown in NI MAX is aligned with that set on the device by using the date command in the shell.

 

WAS THIS ARTICLE HELPFUL?

Not Helpful