Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
3 ratings:
 3 out of 5     Rate this Document

How Do I Disable Daylight Saving Time on LabVIEW Real-Time Targets?

Hardware: PXI/CompactPCI>>Controllers>>PXI-8145 RT, FieldPoint>>Controllers/Network Modules>>FP-2000, Compact FieldPoint>>Controllers>>cFP-2120, FieldPoint>>Controllers/Network Modules>>FP-2010, PXI/CompactPCI>>Controllers>>PXI-8176 RT, PXI/CompactPCI>>Controllers>>PXI-8170 RT, PXI/CompactPCI>>Controllers>>PXI-8186 RT, Compact FieldPoint>>Controllers>>cFP-2010, PXI/CompactPCI>>Controllers>>PXI-8175 RT, CompactRIO>>Controllers>>cRIO-9002, FieldPoint>>Controllers/Network Modules>>FP-3000, Compact FieldPoint>>Controllers>>cFP-2020, FieldPoint>>Controllers/Network Modules>>FP-2015, CompactRIO>>Controllers>>cRIO-9004, Compact FieldPoint>>Controllers>>cFP-2100, PXI/CompactPCI>>Controllers>>PXI-8156B RT, Compact FieldPoint>>Controllers>>cFP-2000, PXI/CompactPCI>>Controllers>>PXI-8146 RT, PXI/CompactPCI>>Controllers>>PXI-8184RT, Compact FieldPoint>>Controllers>>cFP-2200, Compact FieldPoint>>Controllers>>cFP-2210, Compact FieldPoint>>Controllers>>cFP-2220

Problem:
I have set the correct time zone on my LabVIEW Real-Time target through the Measurement and Automation Explorer, but I can't seem to disable the daylight saving feature. I would prefer that my controller didn't switch to daylight saving time in April, but it seems like every time zone will do this by default. How do I disable daylight saving on my LabVIEW real-time target?

Solution:
You are correct that every time zone will automatically add one hour in April, and then subtract one hour in October by default.
You can disable this feature in the Measurement & Automation Explorer (MAX) by clicking on the System Settings tab of your RT controller and unchecking the Automatically adjust target clock for daylight saving changes box. Changes will take place upon rebooting your controller.

If you are using an older version of MAX and there is no option to uncheck the above-mentioned box, then you will have to manually edit the ni-rt.ini configuration file and remove the daylight saving part of the timezone value. This configuration file is found on the root directory of the real-time target.

The section in the ni-rt.ini file is [LVRT] and the INI token is RTTarget.TimeZone.

Below is a table of possible time zone INI values that can be configured by the Measurement and Automation Explorer

INI Value Time Zone UTC Offset
CUT0GDT Coordinated Universal Time UTC
GMT0BST United Kingdom UTC
AZOREST1AZOREDT Azores, Cape Verde UTC-1
FALKST2FALKDT Falkland Islands UTC-2
GRNLNDST3GRNLNDDT Greenland, East Brazil UTC -3
AST4ADT Central Brazil UTC -4
EST5EDT Eastern United States, Colombia UTC-5
CST6CDT Central United States, Honduras UTC-6
MST7MDT Mountain United States UTC-7
PST8PDT Pacific United States, Yukon UTC-8
AST9ADT Alaska UTC-9
HST10HDT Hawaii, Aleutian Islands UTC-10
BST11BDT Bering Strait UTC-11
NZST-12NZDT New Zealand UTC+12
MET-11METDT Solomon Islands UTC+11
EET-10EETDT Eastern Australia UTC+10
JST-9JSTDT Japan UTC+9
KORST-9KORDT Korea UTC+9
WAUST-8WAUDT Western Australia UTC+8
TAIST-8TAIDT Taiwan UTC+8
THAIST-7THAIDT Thailand UTC+7
TASHST-6TASHDT Central Asia UTC+6
PAKST-5PAKDT Pakistan UTC+5
WST-4WDT Gorki, Central Asia, Oman UTC+4
MEST-3MEDT Turkey UTC+3
SAUST-3SAUDT Saudi Arabia UTC+3
WET-2WET Finland UTC+2
USAST-2USADT South Africa UTC+2
NFT-1DFT Norway UTC+1



In order to disable daylight saving, from the controller, remove the second half of the INI value from the configuration file entry. These are all letters after the number in the INI value.

For example:

RTTarget.TimeZone="CST6CDT"


becomes


RTTarget.TimeZone="CST6"


for controllers in Central Standard Time/Central Daylight Time.

Please keep in mind that modifying these INI values is not officially supported, but should still work for most time zones.

Related Links:
Developer Zone Tutorial: Setting the Timezone of a LabVIEW Real-Time System
Products & Services: Real-Time Measurement and Control
KnowledgeBase 46J7O59K: 2007 Daylight Savings Change Effects on National Instruments Software

Attachments:


NZST-12.jpg - NZST-12.jpgGMT-6.jpg - GMT-6.jpg


Report Date: 01/21/2005
Last Updated: 05/01/2008
Document ID: 3HKA4CXT

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