The Current Time Is Incorrect on My LabVIEW Real-Time ControllerPrimary Software: LabVIEW Modules>>Real-Time ModulePrimary Software Version: 8.6 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: Why are the time and date incorrect on my Real-Time Controller and how can I fix this programmatically? Solution: Your time and date could be incorrect if you have not set the correct time zone for your controller. By default, your real-time controller is set to Coordinated Universal Time (also known as Greenwich Mean Time) and in that case setting both local time and UTC time will do exactly the same thing. You can configure the time zone through the Measurement & Automation Explorer on the Systems Settings tab. In the case that your timestamps are off one hour during daylight saving time, configuring the time zone will also activate the daylight saving feature of the controller. If you have configured the correct time zone, then it is possible that your host computer is set to a different time zone than your real-time controller. This would also depend on how you are referencing the current time after setting it. If you are using Get Date/Time in Seconds from the Time and Dialog palette, that function can create a timestamp indicator on the front panel. The front panels of all real-time applications reside on the host computer, and a timestamp indicator will actually reference the time zone of the computer you are viewing it on. It will automatically convert the date and time so the user can view timestamps in their own time zone. The host computer's time and date configuration are referenced when LabVIEW first starts up. One way to avoid an unintentional time zone conversion is by using the Get Date/Time String function, instead of Get Date/Time in Seconds, to obtain the current time on the controller. You could also convert the timestamp data type by using the Seconds to Date/Time function. Related Links: KnowledgeBase 34FIELXT: Configuring Time Server for FieldPoint Developer Zone Example: Getting/Setting the System Date/Time on CVS and PXI RT Targets Attachments:
Report Date: 01/20/2005 Last Updated: 09/15/2008 Document ID: 3HJHM4XT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
