Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

VxWorks Targets Do Not Honor New Daylight Savings Time Rules

Primary Software: LabVIEW Modules>>Real-Time Module
Primary Software Version: N/A
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Add-ons>>Real-Time Module
Hardware: CompactRIO>>Controllers>>cRIO-9012

Problem:
Recently, the rules for Daylight Savings Time start and stop have changed. My VxWorks-based controller (such as the cRIO 901x series) seems to be an hour off sometimes. How do I correct this?

Solution:
Please consult the ReadMe of LabVIEW Real-Time if your version is 8.5 or greater. The latest information will be available there. As of version 8.5, VxWorks targets do not comply with the latest rules for Daylight Savings Time. As a result, VxWorks targets may report incorrect time from early March through early April and from late October through early November. The actual start and end dates of Daylight Savings Time differ from year to year, and not all regions participate in Daylight Savings Time. Refer to the official Daylight Savings Time regulations in your region for more information.

The easiest workaround is to use the RT Set Date and Time VI from the Real-Time utilities palette. Using this VI to periodically synchronize the RT time with a local time server is an easy way to get the correct time. Refer to the Related Links section below for example programs on getting and setting the system time on a Real-Time target.

Related Links:
Developer Zone Example: Getting/Setting the System Date/Time on CVS, PXI RT Targets
Developer Zone Example: Set Date and Time on PC, PXI, and PXI-RT Using Network Time Protocol (NTP) Server from NIST

Attachments:





Report Date: 07/16/2007
Last Updated: 09/08/2007
Document ID: 4BFDL3XL

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit