Home
Support
어떻게 하면 Real-Time Controller의 시간대를 설정할 수 있습니까?
어떻게 하면 Real-Time Controller의 시간대를 설정할 수 있습니까?
하드웨어: CompactRIO, Compact FieldPoint, PXI/CompactPCI>>Controllers
문제점: Real-Time Controller의 시간대를 설정하고 싶습니다. 어떻게 하면 됩니까?
솔루션: 기본적으로 Real-Time Controller의 시간대는 Coordinated Universal Time (UTC)로 설정이 되어 있습니다. 아래 방법을 통하여 시간대를 설정할 수 있습니다.
Measurement & Automation Explorer:Measurement & Automation Explorer (MAX) 에서 Real Time Target을 선택한 후
Time Settings 탭에서 원하는 시간대를 설정하시기 바랍니다.
Modifying the INI File:Real-Time controller 의 시간대는 ni-rt.ini 에 있는 RTTarget.TimeZone토큰으로 바꿀 수도 있습니다. 토큰은 ni-rt.ini 파일의 [LVRT] 섹션에서 찾을 수 있습니다.
- WebDAV 나 FTP 를 이용하여 Real-Time Controller에 있는 ni-rt.ini 파일을 개발 컴퓨터로 옮깁니다.
-
ni-rt.ini
를 메모장 같은 텍스트 에디터로 엽니다.
- 파일의 가장 위쪽에 [LVRT]라고 써있는 섹션에서 the
RTTarget.TimeZone
토큰을 찾을 수 있습니다. 없다면 추가하시기 바랍니다.
- INI 파일 안에 있는
RTTarget.TimeZone
토큰에 시간대를 수정하거나 추가합니다. 예를 들어 INI 토큰에 RTTarget.TimeZone=CST6CDT
라고 입력한다면 Central United States 시간대를 사용하게 됩니다. 가능한 INI 값들은 아래의 테이블과 같습니다.
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 |
ni-rt.ini
을 저장합니다. 파일 이름은 반드시 ni-rt.ini 여야 합니다
.
- WebDAV 나 FTP 를 이용하여 파일을 Real-Time Controller로 다시 옮깁니다.
- Real-Time Controller를 재부팅 합니다.
NI System Configuration API:LabVIEW 2012 Real-Time Module 에서는 NI System Configuration API인
Set Time.vi을 이용하여 프로그램적으로Real-Time Controller의 시간대를 설정할 수 있습니다. 시간대 스트링은 Etc/GMT-X 나
Etc/GMT+X
같은 폼을 사용하며
X
는 GMT의 오프셋 시간이라고 생각 하시면 됩니다. 예를 들어 Etc\GMT-6 는 Central Standard Time 과 같은 시간입니다. 가능한 X값은 12 부터 -13 사이의 GMT값입니다.
Note: VxWorks 와 Pharlap 타겟은 시간대를 설정하고 적용하기 위해 재부팅이 반드시 필요합니다. 그러나 NI Linux Real-Time 타겟은 재부팅할 필요가 없습니다. 시간대를 설정하면 일광 절약 시간도 같이 활성화가 됩니다.
LabVIEW 2011 Real-Time Module and Previous:LabVIEW 2011 Real-Time Module 과 그 이전버전의 Real-Time Modules 들은 특별한 시간대를 설정할 수 있도록 지원되지 않습니다. 그 대신,
RT Set Date and Time VI를 이용하여 시간과 날짜를 설정할 수 있습니다.
관련 링크:
Product Manuals: NI System Configuration API Help (5.3) KnowledgeBase 2HDCFJV5: Universal Time and LabVIEWKnowledgeBase 3HJHM4XT: The Current Time is Incorrect on My LabVIEW Real-Time ControllerKnowledgeBase 4LRA4IQ0: What Operating System is my Real-Time Controller Running and Why? KnowledgeBase 42AH5HE9: What LabVIEW Real-Time Related Settings Can be Changed Using INI Tokens?
첨부:
리포트 날짜: 09/11/2012
마지막 업데이트: 07/28/2015
문서 번호: 61AD77P7
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.