Incorrect Europe Daylight Saving Time Setting for NI Real-Time Target

Updated Mar 27, 2024

Reported In

Hardware

  • PXI Controller
  • CompactRIO Controller
  • CompactDAQ Controller

Software

  • LabVIEW Real-Time Module
  • Measurement & Automation Explorer (MAX)

Operating System

  • Phar Lap
  • VxWorks

Issue Details

If the Automatically adjust clock for Daylight Saving Time option is enabled in the Time Settings for my target in NI MAX, the time zone should be recognized based on the region. However, I’ve observed that the transition to Daylight Saving Time follows the United States standard and there is no option to change it.
How can I adjust it to European dates?

Solution

This is a known issue reported with ID 322019.
To set the correct date for the DST, modify the RTTarget.DSTRule token in the ni-rt.ini file.
Instructions on obtaining and modifying the INI file can be found below:
  1. Use WebDAV or FTP to copy the ni-rt.ini file from the Real-Time controller to the development computer.
  2. Open the ni-rt.ini file in a text editor.
  3. At the top of the file, there is a section named [LVRT], which is where the token may be found or added.
  4. To change the DST setting either add or modify the RTTarget.DSTRule token to the INI file.
The format for the token is as follows.

image.png
For example, to manually set the Europe regulations, rules for the DST (01:00 UTC on the last Sunday of March) and STD (01:00 UTC on the last Sunday of October) would be defined as:
[LVRT]
RTTarget.DSTRule = 3.5.0.1.0,10.5.0.1.0

Additional Information

The following method is limited to Phar Lab and VxWorks based targets.
Linux Real-Time targets support the tz (or Olson) database. The database contains all the needed information about DST settings for specific time zones. The RTTarget.DSTRule INI token cannot be changed to alter DST rules on Linux RT targets.